Skip to content

Commit

Permalink
chore(e2e): network-detail-spec-fix (#3994)
Browse files Browse the repository at this point in the history
* added wait for element to load properly

* added wait for element to load properly

* changed wait time to 2

* removed network detail spec from exclude list

* added implicit wait time

* added 3  wait time

* added 4 sec  wait time

* added wait at clear wallet
  • Loading branch information
Rampraesath authored Jul 6, 2023
1 parent ba51400 commit 8a46911
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion mobile-app/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ module.exports = defineConfig({
"cypress/e2e/functional/wallet/portfolio/convert/convert.spec.ts",
"cypress/e2e/functional/wallet/portfolio/poolpairRewards.spec.ts",
// Functional/Wallet/Settings
"cypress/e2e/functional/wallet/settings/networkDetails.spec.ts",
"cypress/e2e/functional/wallet/settings/addressBook.spec.ts",
"cypress/e2e/functional/wallet/settings/changePasscode.spec.ts",
// Functional/Wallet/Transaction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ context("Wallet - Network detail screen - outside wallet context", () => {
beforeEach(() => {
cy.visit("/");
cy.exitWallet();
cy.getByTestID("get_started_button").click();
cy.wait(3000);
cy.getByTestID("get_started_button").should("be.visible").click();
cy.getByTestID("guidelines_check").click();
cy.url().should("include", "wallet/onboarding/guidelines");
cy.restoreLocalStorage();
Expand Down Expand Up @@ -321,6 +322,7 @@ context(
});

it("should get back to the setting page when network detail called from setting page", () => {
cy.wait(1000);
cy.getByTestID("bottom_tab_portfolio").click().wait(3000);
cy.getByTestID("header_settings").filter(":visible").click().wait(3000);
cy.url().should("include", "app/Settings");
Expand Down
1 change: 1 addition & 0 deletions mobile-app/cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ Cypress.Commands.add("closeOceanInterface", (pin?: string) => {
});

Cypress.Commands.add("exitWallet", () => {
cy.wait(4000);
cy.getByTestID("playground_wallet_clear").click();
});

Expand Down

0 comments on commit 8a46911

Please sign in to comment.