Update collaborate.js
parent
83f08a6bc3
commit
1efc616508
|
@ -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
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue