diff --git a/tests/cypress/e2e/tests/ve-cite/wt2017Integration.cy.js b/tests/cypress/e2e/tests/ve-cite/wt2017Integration.cy.js index 3e3ed6060..6c597c6aa 100644 --- a/tests/cypress/e2e/tests/ve-cite/wt2017Integration.cy.js +++ b/tests/cypress/e2e/tests/ve-cite/wt2017Integration.cy.js @@ -36,8 +36,6 @@ describe( 'Visual Editor Wt 2017 Cite Integration', () => { } ); it( 'should be able to create a basic reference', () => { - // FIXME: Fix application logic to only render once fully initialized. - cy.wait( 1000 ); if ( usesCitoid ) { cy.get( '.ve-ui-toolbar-group-citoid' ).click(); cy.wait( 500 ); @@ -65,8 +63,6 @@ describe( 'Visual Editor Wt 2017 Cite Integration', () => { } ); it( 'should be able to create a VE-Cite tool template', () => { - // FIXME: Replace this wait with a trigger when VE is fully initialized. - cy.wait( 1000 ); if ( usesCitoid ) { cy.get( '.ve-ui-toolbar-group-citoid' ).click(); cy.wait( 500 ); diff --git a/tests/cypress/e2e/utils/ve.helper.js b/tests/cypress/e2e/utils/ve.helper.js index f8084724f..c0fba7ff9 100644 --- a/tests/cypress/e2e/utils/ve.helper.js +++ b/tests/cypress/e2e/utils/ve.helper.js @@ -34,6 +34,9 @@ export function waitForVECiteToLoad() { export function waitForVECitoidToLoad() { helpers.waitForModuleReady( 'ext.citoid.visualEditor' ); + // FIXME: Fix application logic to only render once fully initialized. + // eslint-disable-next-line cypress/no-unnecessary-waiting + cy.wait( 1000 ); } export function getVEFootnoteMarker( refName, sequenceNumber, index ) {