tests: Allow time for minification to complete

Minification happens after the initial visit and request to pages.
pull/4924/head
John McLear 2021-03-05 06:58:51 +00:00
parent 536db7553f
commit 5ac90ab30f
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@ Cypress.Commands.add('iframe', {prevSubject: 'element'},
describe(__filename, () => {
it('Pad content exists', () => {
cy.visit('http://127.0.0.1:9001/p/test');
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');