From 8a520a44693677e4e76b726c58d4a293a6960ae4 Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Tue, 19 Mar 2024 15:55:55 +0100 Subject: [PATCH] fix: element names --- packages/integration-tests/tests/ui/transactions.spec.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/integration-tests/tests/ui/transactions.spec.ts b/packages/integration-tests/tests/ui/transactions.spec.ts index c4353b1c8d..d0636b47a7 100644 --- a/packages/integration-tests/tests/ui/transactions.spec.ts +++ b/packages/integration-tests/tests/ui/transactions.spec.ts @@ -16,6 +16,7 @@ let elementTx: Locator; let elementFrom: Locator; let elementTo: Locator; let elementContract: Locator; +let elementTxAmount: Locator; let selector: string; //@id1656 @@ -91,7 +92,7 @@ test(" Check on BE Transfer custom ERC-20 token via Portal", async ({ page }) => elementTo = await page.locator(selector).first(); selector = `text= 1 `; - element = await page.locator(selector).first(); + elementTxAmount = await page.locator(selector).first(); //Check tx Hash await expect(elementTx).toBeVisible(config.extraTimeout); @@ -100,7 +101,7 @@ test(" Check on BE Transfer custom ERC-20 token via Portal", async ({ page }) => //Check address To await expect(elementTo).toBeVisible(config.extraTimeout); //Check transaction Amount - await expect(element).toBeVisible(config.extraTimeout); + await expect(elementTxAmount).toBeVisible(config.extraTimeout); }); //@id1683 @@ -115,10 +116,10 @@ test("Check on BE contract that makes multiple transfers based on stored/retriev elementContract = await page.locator(selector).first(); selector = `text=${txAddress}`; - element = await page.locator(selector).first(); + elementTx = await page.locator(selector).first(); //Check contract Address await expect(elementContract).toBeVisible(config.extraTimeout); //Check tx Hash - await expect(element).toBeVisible(config.extraTimeout); + await expect(elementTx).toBeVisible(config.extraTimeout); });