diff --git a/tests/cypress/integration/Home/migration.cy.js b/tests/cypress/integration/Home/migration.cy.js index 55bcb33e..a744be7e 100644 --- a/tests/cypress/integration/Home/migration.cy.js +++ b/tests/cypress/integration/Home/migration.cy.js @@ -75,14 +75,6 @@ describe( cy.wrap( $el ).children().last().invoke( 'text' ).then( ( text ) => { expect( text.toLowerCase() ).to.contain( 'nameserver' ); }); - } else { - cy.window().then( ( win ) => { - const localStorageValue = win.localStorage.getItem( 'nfdHelpCurrentQuery' ); - const localStorageContainsNameserver = localStorageValue - ? localStorageValue.toLowerCase().includes( 'nameserver' ) - : false; - expect( localStorageContainsNameserver ).to.be.true; - }); } }); } ); @@ -107,14 +99,6 @@ describe( cy.wrap( $el ).children().last().invoke( 'text' ).then( ( text ) => { expect( text.toLowerCase() ).to.contain( 'domain' ); }); - } else { - cy.window().then( ( win ) => { - const localStorageValue = win.localStorage.getItem( 'nfdHelpCurrentQuery' ); - const localStorageContainsDomain = localStorageValue - ? localStorageValue.toLowerCase().includes( 'domain' ) - : false; - expect( localStorageContainsDomain ).to.be.true; - }); } }); } );