Skip to content

Commit

Permalink
fix: new one
Browse files Browse the repository at this point in the history
  • Loading branch information
olehbairak committed Mar 7, 2024
1 parent 382526d commit d03fe86
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
5 changes: 5 additions & 0 deletions packages/integration-tests/src/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,8 @@ const txSumETH = "0.000009";
export const Values = {
txSumETH: txSumETH,
};

/*
export enum Values {
txSumETH = "0.000009",
}*/
18 changes: 9 additions & 9 deletions packages/integration-tests/tests/ui/transactions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@ test(" Check on BE Transfer ETH token via Portal", async ({ page }) => {
url = BlockExplorer.baseUrl + `/tx/${transaction}` + BlockExplorer.localNetwork;

await page.goto(url);
//Check tx hash
//Check transaction hash
selector = `text=${transaction}`;
element = await page.locator(selector).first();

await expect(element).toBeVisible(config.extraTimeout);
//Check address From
//Check address of sender
selector = `text=${Wallets.richWalletAddress}`;
element = await page.locator(selector).first();

await expect(element).toBeVisible(config.extraTimeout);
//Check address To
//Check address of receiver
selector = `text=${Token.ETHER_ERC20_Address}`;
element = await page.locator(selector).first();

Expand All @@ -83,17 +83,17 @@ test(" Check on BE Transfer custom ERC-20 token via Portal", async ({ page }) =>
url = BlockExplorer.baseUrl + `/tx/${transaction}` + BlockExplorer.localNetwork;

await page.goto(url);
//Check tx hash
//Check transaction hash
selector = `text=${transaction}`;
element = await page.locator(selector).first();

await expect(element).toBeVisible(config.extraTimeout);
//Check address From
//Check address of receiver
selector = `text=${Wallets.richWalletAddress}`;
element = await page.locator(selector).first();

await expect(element).toBeVisible(config.extraTimeout);
//Check address To
//Check address of receiver
selector = `text=${adressTo}`;
element = await page.locator(selector).first();

Expand All @@ -108,10 +108,9 @@ test(" Check on BE Transfer custom ERC-20 token via Portal", async ({ page }) =>

//@id1683
test("Check on BE contract that makes multiple transfers based on stored/retrieved ETH + ERC20", async ({ page }) => {
//contract address
bufferFile = bufferRoute + Buffer.addressMultiTransferETH;
contract = await helper.getStringFromFile(bufferFile);
//tx hash from deployed contract

const bufferFileAddress = bufferRoute + Buffer.txMultiTransferETH;
const txAddress = await helper.getStringFromFile(bufferFileAddress);
url = BlockExplorer.baseUrl + `/address/${contract}` + BlockExplorer.localNetwork;
Expand All @@ -122,7 +121,8 @@ test("Check on BE contract that makes multiple transfers based on stored/retriev
element = await page.locator(selector).first();

await expect(element).toBeVisible(config.extraTimeout);
//Check tx hash
//Check transaction hash
selector = `text=${txAddress}`;
element = await page.locator(selector).first();
await expect(element).toBeVisible(config.extraTimeout);
});

0 comments on commit d03fe86

Please sign in to comment.