Skip to content

Commit

Permalink
feat: MET-1773 fix cypress test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotatek-TaiTruong committed Dec 14, 2023
1 parent 034f424 commit eedd444
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
3 changes: 0 additions & 3 deletions cypress/e2e/addressDetail.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@ describe("address detail spec", () => {
cy.get('[data-testid="submenu-button-transactions"]').click();
cy.get('[data-testid="transactions-card"]').contains("Transactions");
cy.get(`[data-testid="table-common"] tbody tr:nth-child(1) td:nth-child(8) a`).eq(0).click();
cy.wait(1000);
cy.get('[data-testid="address-detail-title"]').contains("Address Details", { matchCase: false });
});

it("should navigate to the address detail page", () => {
const address = "Ae2tdPwUPEZKnykUqXyYQxqJSnADNkm4ELUnyqZUBHcCrNJVDqozLYCt9Jv";
cy.visit("/address/Ae2tdPwUPEZKnykUqXyYQxqJSnADNkm4ELUnyqZUBHcCrNJVDqozLYCt9Jv");
cy.get('[data-testid="address-detail-title"]').contains("Address Details");
cy.get(".css-12n155v").contains(address);
cy.get("div").contains("Analytics");
cy.get("div").contains("Transactions");
Expand Down
2 changes: 0 additions & 2 deletions cypress/e2e/contracts.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ describe("contracts spec", () => {
cy.visit("/contracts");
cy.get("h2").contains("Smart Contracts");
cy.get('[data-testid="search-bar"]').type(address).type("{enter}");
cy.wait(1000);
cy.get('[data-testid="address-detail-title"]').contains("Address Details", { matchCase: false });
});

it("should display box output in SPEND contract", () => {
Expand Down
2 changes: 0 additions & 2 deletions cypress/e2e/scenario/StakeAddressDeregistrationTest.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ describe("User check information of stake address deregistration", () => {
cy.get('[data-testid="view-detail-button-sidebar"]').contains("View Details", { matchCase: false }).click();

cy.get('[data-testid="search-bar"]');
cy.wait(1000);
cy.get('[data-testid="stake-address-detail-title"]').contains("Stake Address Details", { matchCase: false });
cy.get('[data-testid="stake-address-overview-delegated"]').contains("Delegated to");
cy.get('[data-testid="stake-address-overview-total-stake"]').contains("Total Stake");
cy.get('[data-testid="stake-address-overview-reward-available"]').contains("Rewards available");
Expand Down
1 change: 0 additions & 1 deletion cypress/e2e/scenario/StakeAddressRegistrationTest.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ describe("User check information of stake address registration", () => {
cy.get('[data-testid="table-common"] tbody tr').eq(0).click();
cy.get("a").contains("View Details", { matchCase: false }).click();
cy.get('[data-testid="search-bar"]');
cy.get("div").contains("Stake Address Details", { matchCase: false });
cy.get(":nth-child(1) > .css-13ne0mf > .css-70qvj9 > .MuiBox-root").contains("Delegated to");
cy.get(":nth-child(2) > .css-13ne0mf > .css-70qvj9 > .MuiBox-root").contains("Total Stake");
cy.get(":nth-child(3) > .css-13ne0mf > .css-70qvj9 > .MuiBox-root").contains("Rewards available");
Expand Down

0 comments on commit eedd444

Please sign in to comment.