diff --git a/mobile-app/cypress/e2e/functional/wallet/settings/networkDetails.spec.ts b/mobile-app/cypress/e2e/functional/wallet/settings/networkDetails.spec.ts index b20467f18d..52568059bb 100644 --- a/mobile-app/cypress/e2e/functional/wallet/settings/networkDetails.spec.ts +++ b/mobile-app/cypress/e2e/functional/wallet/settings/networkDetails.spec.ts @@ -32,7 +32,7 @@ context("Wallet - Network detail screen - outside wallet context", () => { cy.getByTestID(`button_network_${network}_check`).should( "have.css", "color", - statusBgColor + statusBgColor, ); }); }); @@ -55,7 +55,7 @@ context("Wallet - Network detail screen - outside wallet context", () => { cy.getByTestID(`button_network_${network}_check`).should( "have.css", "color", - statusBgColor + statusBgColor, ); cy.go("back"); cy.url().should("include", "wallet/onboarding/guidelines"); @@ -78,13 +78,13 @@ context("Wallet - Network detail screen - outside wallet context", () => { .filter(":visible") .click(); cy.getByTestID(`button_network_${network}_uncheck`).should( - "exist" + "exist", ); cy.getByTestID( - `button_network_${updatedNetwork}_check` + `button_network_${updatedNetwork}_check`, ).should("exist"); cy.getByTestID( - `button_network_${updatedNetwork}_check` + `button_network_${updatedNetwork}_check`, ).should("have.css", "color", updatedStatusBgColor); }); }); @@ -161,7 +161,7 @@ context("Wallet - Network detail screen - outside wallet context", () => { cy.getByTestID(`button_network_${network}_check`).should( "have.css", "color", - statusBgColor + statusBgColor, ); cy.getByTestID("network_details_block_height") .should("exist") @@ -177,7 +177,9 @@ context("Wallet - Network detail screen - outside wallet context", () => { .invoke("text") .then((updatedLastSync) => { expect( - dayjs(lastSuccessfulSync).isBefore(dayjs(updatedLastSync)) + dayjs(lastSuccessfulSync).isBefore( + dayjs(updatedLastSync), + ), ).to.be.eq(true); }); }); @@ -208,7 +210,7 @@ context("Wallet - Network detail screen - with wallet context", () => { cy.getByTestID(`button_network_${network}_check`).should( "have.css", "color", - "rgb(0, 173, 29)" + "rgb(0, 173, 29)", ); }); }); @@ -231,7 +233,7 @@ context("Wallet - Network detail screen - with wallet context", () => { cy.getByTestID(`button_network_${network}_check`).should( "have.css", "color", - statusBgColor + statusBgColor, ); cy.getByTestID("button_network_Playground").click(); cy.exitWallet(); @@ -254,7 +256,7 @@ context("Wallet - Network detail screen - with wallet context", () => { .should("exist") .contains(updatedNetwork); cy.getByTestID( - `button_network_${updatedNetwork}_check` + `button_network_${updatedNetwork}_check`, ).should("have.css", "color", updatedStatusBgColor); }); }); @@ -266,6 +268,7 @@ context("Wallet - Network detail screen - with wallet context", () => { cy.getByTestID("bottom_tab_portfolio").click(); cy.getByTestID("header_settings").click().wait(3000); cy.getByTestID("header_network_icon").filter(":visible").click(); + cy.getByTestID("block_detail_explorer_url").scrollIntoView(); cy.getByTestID("block_detail_explorer_url") .invoke("text") .then(() => { @@ -333,5 +336,5 @@ context( cy.go("back"); cy.url().should("include", "app/Settings"); }); - } + }, );