Skip to content

Commit

Permalink
updated failing test for wonderHelp
Browse files Browse the repository at this point in the history
As the input is being reset after the search. The cypress test in ecomm module fails as it looks for a persisted value in the input box. This change will fix that.

Co-Authored-By: Emanuela Antonina Castorina  <[email protected]>
  • Loading branch information
ajayadav09 and kreamweb committed Dec 12, 2024
1 parent f45d50f commit 656fdae
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions tests/cypress/integration/Home/migration.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,14 @@ describe(
cy.get( '.help-container', {
timeout: customCommandTimeout,
} ).should( 'be.visible' );
cy.get( '#search-input-box' )
.should( 'have.attr', 'value' )
.then( ( value ) => {
expect( value.toLowerCase() ).to.contain( 'nameserver' );
cy.get( 'div.helpcenter-question-block' )
.children()
.last()
.invoke( 'text' )
.then( ( text ) => {
expect( text.toLowerCase() ).to.contain( 'nameserver' );
} );
} );
} );

it( 'Verify when connect domain to site clicked', () => {
cy.intercept( APIList.connect_domain ).as( 'events' );
Expand All @@ -90,11 +92,14 @@ describe(
cy.get( '.help-container', {
timeout: customCommandTimeout,
} ).should( 'be.visible' );
cy.get( '#search-input-box' )
.should( 'have.attr', 'value' )
.then( ( value ) => {
expect( value.toLowerCase() ).to.contain( 'domain' );
cy.get( 'div.helpcenter-question-block' )
.children()
.last()
.invoke( 'text' )
.then( ( text ) => {
expect( text.toLowerCase() ).to.contain( 'domain' );
} );
} );
} );

it( 'Verify when continue with store setup clicked', () => {
Expand Down

0 comments on commit 656fdae

Please sign in to comment.