Skip to content

Commit

Permalink
chore(e2e): address-book-spec-fix (#3998)
Browse files Browse the repository at this point in the history
* wait for js calls to complete

* retest run

* retest run

* retest run

* retest run

* retest run

* retest run

* retest run

* retest run

* retest run

* retest run

* final fix

* reduce containers
  • Loading branch information
Rampraesath authored Jul 10, 2023
1 parent e66cb98 commit b5077ca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false # https://github.com/cypress-io/github-action/issues/48
matrix:
containers: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
containers: [1, 2, 3, 4, 5, 6, 7, 8]
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,13 @@ defichainUrlEnvs.forEach((defichainUrlEnv) => {
"aria-disabled"
);
cy.getByTestID("button_submit").click().wait(3000);
cy.getByTestID("pin_authorize").type("000000");
cy.getByTestID("pin_authorize").type("000000", { delay: 3000 });
cy.wait(5000);
cy.url().should("include", "app/portfolio");
cy.getByTestID("bottom_tab_portfolio").click();
cy.wait(4000);
cy.getByTestID("header_settings").click().wait(1000);
cy.wait(4000);
cy.url().should("include", "app/Settings/SettingsScreen");
cy.getByTestID("header_custom_active_network").should("exist");
cy.getByTestID("setting_navigate_service_provider").contains("Custom");
Expand All @@ -120,7 +123,7 @@ defichainUrlEnvs.forEach((defichainUrlEnv) => {
cy.getByTestID("setting_navigate_service_provider").click();
cy.getByTestID("edit_service_provider").click();
cy.getByTestID("reset_button").should("exist").click().wait(3000);
cy.getByTestID("pin_authorize").type("000000");
cy.getByTestID("pin_authorize").type("000000", { delay: 3000 });
cy.wait(5000);
cy.getByTestID("bottom_tab_portfolio").click();
cy.getByTestID("header_settings").click().wait(1000);
Expand Down
2 changes: 2 additions & 0 deletions mobile-app/cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ Cypress.Commands.add("getByTestID", (selector: string, opts?: any) => {
});

Cypress.Commands.add("createEmptyWallet", (isRandom: boolean = false) => {
cy.intercept("**").as("requests");
cy.visit("/", { timeout: 300000 });
cy.get("@requests.all", { timeout: 300000 });
cy.getByTestID(
isRandom ? "playground_wallet_random" : "playground_wallet_abandon"
).click();
Expand Down

0 comments on commit b5077ca

Please sign in to comment.