diff --git a/cypress/e2e/NewLexemeForm.cy.js b/cypress/e2e/NewLexemeForm.cy.js index 9a5ef20f..ed29565a 100644 --- a/cypress/e2e/NewLexemeForm.cy.js +++ b/cypress/e2e/NewLexemeForm.cy.js @@ -74,8 +74,8 @@ describe( 'NewLexemeForm', () => { .type( '=Q456', { delay: 0 } ); cy.get( '.wbl-snl-lexical-category-lookup .wikit-OptionsMenu__item' ).click(); - cy.get( '.wbl-snl-form' ) - .submit(); + cy.get( '.wbl-snl-form button' ) + .click(); cy.get( '@alert' ).then( ( spy ) => { expect( spy ).to.have.been.calledWith( @@ -111,8 +111,8 @@ describe( 'NewLexemeForm', () => { .type( 'en-ca', { delay: 0 } ); cy.get( '.wbl-snl-spelling-variant-lookup .wikit-OptionsMenu__item' ).click(); - cy.get( '.wbl-snl-form' ) - .submit(); + cy.get( '.wbl-snl-form button' ) + .click(); cy.get( '@alert' ).then( ( spy ) => { expect( spy ).to.have.been.calledWith( @@ -166,8 +166,8 @@ describe( 'NewLexemeForm', () => { expect( $input ).to.have.value( 'Q456' ); } ); - cy.get( '.wbl-snl-form' ) - .submit(); + cy.get( '.wbl-snl-form button' ) + .click(); cy.get( '@alert' ).then( ( spy ) => { expect( spy ).to.have.been.calledWith( diff --git a/src/components/NewLexemeForm.vue b/src/components/NewLexemeForm.vue index b22d6576..07d5ed76 100644 --- a/src/components/NewLexemeForm.vue +++ b/src/components/NewLexemeForm.vue @@ -152,7 +152,7 @@ export default {