From 9d435b4e33cb0fb242f93d84cfa6ccfa424502a1 Mon Sep 17 00:00:00 2001 From: ajayadav09 Date: Mon, 16 Dec 2024 15:19:37 +0530 Subject: [PATCH] removed localstorage check --- tests/cypress/integration/Home/migration.cy.js | 16 ---------------- 1 file changed, 16 deletions(-) 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; - }); } }); } );