Skip to content

Commit

Permalink
Revert "fix(e2e): network details"
Browse files Browse the repository at this point in the history
This reverts commit c29aef8.
  • Loading branch information
chloezxyy committed Sep 6, 2023
1 parent c29aef8 commit 3baff06
Showing 1 changed file with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ context("Wallet - Network detail screen - outside wallet context", () => {
cy.getByTestID(`button_network_${network}_check`).should(
"have.css",
"color",
statusBgColor,
statusBgColor
);
});
});
Expand All @@ -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");
Expand All @@ -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);
});
});
Expand Down Expand Up @@ -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")
Expand All @@ -177,9 +177,7 @@ 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);
});
});
Expand Down Expand Up @@ -210,7 +208,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)"
);
});
});
Expand All @@ -233,7 +231,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();
Expand All @@ -256,7 +254,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);
});
});
Expand All @@ -268,7 +266,6 @@ 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(() => {
Expand Down Expand Up @@ -336,5 +333,5 @@ context(
cy.go("back");
cy.url().should("include", "app/Settings");
});
},
}
);

0 comments on commit 3baff06

Please sign in to comment.