Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(e2e): network-detail-spec-fix #3994

Merged
merged 9 commits into from
Jul 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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