diff --git a/tests/cypress/integration/Home/migration.cy.js b/tests/cypress/integration/Home/migration.cy.js index c15e2277..ddd7e5c0 100644 --- a/tests/cypress/integration/Home/migration.cy.js +++ b/tests/cypress/integration/Home/migration.cy.js @@ -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' ); @@ -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', () => {