Update collaborate.js

This commit is contained in:
John McLear 2021-03-13 17:19:21 +00:00
parent cc4253bf3f
commit ee41ca7807

View file

@ -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');
});
});