From 0903bb92625ab66c1508aa38f2d9231011746e37 Mon Sep 17 00:00:00 2001 From: Nelito Junior Date: Wed, 5 Feb 2025 20:56:17 -0300 Subject: [PATCH] test: update e2e tests to display "Unknown" for asset symbol --- .../playwright/e2e/ForwardAndMintMulticall.test.ts | 2 +- .../playwright/e2e/ForwardCustomAsset.test.ts | 5 ++++- .../playwright/e2e/ForwardHalfAndExternalMint.test.ts | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/e2e-contract-tests/playwright/e2e/ForwardAndMintMulticall.test.ts b/packages/e2e-contract-tests/playwright/e2e/ForwardAndMintMulticall.test.ts index cd0137eca..8460f1308 100644 --- a/packages/e2e-contract-tests/playwright/e2e/ForwardAndMintMulticall.test.ts +++ b/packages/e2e-contract-tests/playwright/e2e/ForwardAndMintMulticall.test.ts @@ -99,7 +99,7 @@ test.describe('Forward and Mint Multicall', () => { const assetId = calculateAssetId(MAIN_CONTRACT_ID, await getBaseAssetId()); // await hasText(walletNotificationPage, shortAddress(assetId)); // test mint amount is correct - await hasText(walletNotificationPage, formattedMintAMount); + await hasText(walletNotificationPage, `${formattedMintAMount} Unknown`); // test gas fee is shown and correct await hasText(walletNotificationPage, 'Fee (network)'); diff --git a/packages/e2e-contract-tests/playwright/e2e/ForwardCustomAsset.test.ts b/packages/e2e-contract-tests/playwright/e2e/ForwardCustomAsset.test.ts index 7183efae6..c5f813d50 100644 --- a/packages/e2e-contract-tests/playwright/e2e/ForwardCustomAsset.test.ts +++ b/packages/e2e-contract-tests/playwright/e2e/ForwardCustomAsset.test.ts @@ -106,7 +106,10 @@ test.describe('Forward Custom Asset', () => { // await hasText(walletNotificationPage, shortAddress(assetId)); // test forward custom asset amount is correct - await hasText(walletNotificationPage, formattedForwardCustomAssetAmount); + await hasText( + walletNotificationPage, + `${formattedForwardCustomAssetAmount} Unknown` + ); // test gas fee is correct await hasText(walletNotificationPage, 'Fee (network)'); diff --git a/packages/e2e-contract-tests/playwright/e2e/ForwardHalfAndExternalMint.test.ts b/packages/e2e-contract-tests/playwright/e2e/ForwardHalfAndExternalMint.test.ts index 59f3a9cdf..9b15bf7c8 100644 --- a/packages/e2e-contract-tests/playwright/e2e/ForwardHalfAndExternalMint.test.ts +++ b/packages/e2e-contract-tests/playwright/e2e/ForwardHalfAndExternalMint.test.ts @@ -116,7 +116,7 @@ test.describe('Forward Half ETH and Mint External Custom Asset', () => { ); // await hasText(walletNotificationPage, shortAddress(assetId)); // test mint amount is correct - await hasText(walletNotificationPage, formattedMintAmount); + await hasText(walletNotificationPage, `${formattedMintAmount} Unknown`); // test gas fee is shown and correct await hasText(walletNotificationPage, 'Fee (network)');