Skip to content

Commit

Permalink
e2e: update test case to USD value
Browse files Browse the repository at this point in the history
  • Loading branch information
chloezxyy committed Jul 22, 2024
1 parent 6df6428 commit 5afbf1b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cypress/e2e/pages/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ context("/ on macbook-16", () => {
.should("be.visible")
.should("have.text", "Minted by");
cy.findByTestId("BlockCardDetails.MintedByValue").should(
"be.visible"
"be.visible",
);
cy.findByTestId("BlockCardDetails.TransactionsLabel")
.should("be.visible")
Expand All @@ -98,7 +98,7 @@ context("/ on macbook-16", () => {
cy.findAllByTestId("LiquidityPoolCard").each(($el) => {
cy.wrap($el).within(() => {
cy.findByTestId("LiquidityPoolCard.PoolPairSymbol").should(
"be.visible"
"be.visible",
);

cy.findByTestId("LiquidityCardStat.APR.Label")
Expand All @@ -113,7 +113,7 @@ context("/ on macbook-16", () => {
.should("have.text", "Liquidity");
cy.findByTestId("LiquidityCardStat.Liquidity.Value")
.should("be.visible")
.contains(/^\d{1,3}(,\d{3})* USDT$/);
.contains(/^\d{1,3}(,\d{3})* USD$/);

cy.findByTestId("LiquidityCardStat.Ratio.Label")
.should("be.visible")
Expand Down Expand Up @@ -204,7 +204,7 @@ context("/ on iphone-x", () => {
.should("be.visible")
.should("have.text", "Minted by");
cy.findByTestId("BlockCardDetails.MintedByValue").should(
"be.visible"
"be.visible",
);
cy.findByTestId("BlockCardDetails.TransactionsLabel")
.should("be.visible")
Expand All @@ -228,7 +228,7 @@ context("/ on iphone-x", () => {
cy.findAllByTestId("LiquidityPoolCard").each(($el) => {
cy.wrap($el).within(() => {
cy.findByTestId("LiquidityPoolCard.PoolPairSymbol").should(
"be.visible"
"be.visible",
);

cy.findByTestId("LiquidityCardStat.APR.Label")
Expand All @@ -243,7 +243,7 @@ context("/ on iphone-x", () => {
.should("have.text", "Liquidity");
cy.findByTestId("LiquidityCardStat.Liquidity.Value")
.should("be.visible")
.contains(/^\d{1,3}(,\d{3})* USDT$/);
.contains(/^\d{1,3}(,\d{3})* USD$/);

cy.findByTestId("LiquidityCardStat.Ratio.Label")
.should("be.visible")
Expand Down

0 comments on commit 5afbf1b

Please sign in to comment.