Update collaborate.js

restore-responsiveness-test
John McLear 2021-03-14 12:40:45 +00:00
parent 83f08a6bc3
commit 1efc616508
1 changed files with 2 additions and 5 deletions

View File

@ -66,12 +66,10 @@ describe(__filename, () => {
cy.get('iframe[name="ace_outer"]').iframe()
.find('iframe[name="ace_inner"]').iframe()
.find('.ace-line:last')
.type(specialKey);
cy.get('iframe[name="ace_outer"]').iframe()
.find('iframe[name="ace_inner"]').iframe()
.find('.ace-line:last')
.type(`${Math.random().toString(36).slice(2)} ${Math.random().toString(36).slice(2)}`);
// shameless copy/pasted from
// https://stackoverflow.com/questions/10726909/random-alpha-numeric-string-in-javascript
@ -94,11 +92,10 @@ describe(__filename, () => {
// Now make one final edit and make sure it's visible within 10 ms.
cy.get('iframe[name="ace_outer"]').iframe()
.find('iframe[name="ace_inner"]').iframe()
.find('.ace-line:last')
.type(`${Math.random().toString(36).slice(2)} ${Math.random().toString(36).slice(2)}`);
cy.get('iframe[name="ace_outer"]').iframe()
.find('iframe[name="ace_inner"]').iframe()
.find('.ace-line:last', {timeout: 10});
.find('iframe[name="ace_inner"]').iframe();
// TODO. test
});
});