mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
Update collaborate.js
This commit is contained in:
parent
cc4253bf3f
commit
ee41ca7807
1 changed files with 9 additions and 3 deletions
|
@ -10,14 +10,20 @@ Cypress.Commands.add('iframe', {prevSubject: 'element'},
|
|||
describe(__filename, () => {
|
||||
it('Pad content exists', () => {
|
||||
cy.visit('http://127.0.0.1:9001/p/collab');
|
||||
cy.wait(10000); // wait for Minified JS to be built...
|
||||
cy.get('iframe[name="ace_outer"]', {timeout: 10000}).iframe()
|
||||
.find('.line-number:first')
|
||||
.should('have.text', '1');
|
||||
cy.get('iframe[name="ace_outer"]').iframe()
|
||||
.find('iframe[name="ace_inner"]').iframe()
|
||||
.find('.ace-line:first')
|
||||
.should('be.visible')
|
||||
.should('have.text', 'Welcome to Etherpad!');
|
||||
.should('be.visible');
|
||||
cy.get('iframe[name="ace_outer"]').iframe()
|
||||
.find('iframe[name="ace_inner"]').iframe()
|
||||
.find('.ace-line:first')
|
||||
.type('Hello, World');
|
||||
cy.get('iframe[name="ace_outer"]').iframe()
|
||||
.find('iframe[name="ace_inner"]').iframe()
|
||||
.find('.ace-line:first')
|
||||
.type('Hello, World2');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue