mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 14:36:51 +00:00
Merge "[cypress] Always wait for the Citoid inspector"
This commit is contained in:
commit
b0bb7c878a
|
@ -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 );
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue