diff --git a/packages/integration-tests/src/playbook/scenarios/deposit/depositETH.ts b/packages/integration-tests/src/playbook/scenarios/deposit/depositETH.ts index 5af4b760ed..d76f10f003 100644 --- a/packages/integration-tests/src/playbook/scenarios/deposit/depositETH.ts +++ b/packages/integration-tests/src/playbook/scenarios/deposit/depositETH.ts @@ -2,10 +2,10 @@ import * as ethers from "ethers"; import * as zksync from "zksync-web3"; import { localConfig } from "../../../config"; -import { Logger, txSumEth } from "../../../entities"; +import { Logger, Values } from "../../../entities"; import { Helper } from "../../../helper"; -export const depositEth = async function (sum = txSumEth) { +export const depositEth = async function (sum = Values.txSumETH) { const helper = new Helper(); const syncProvider = new zksync.Provider(localConfig.L2Network); const ethProvider = ethers.getDefaultProvider(localConfig.L1Network); diff --git a/packages/integration-tests/src/playbook/scenarios/transfers/transferETH.ts b/packages/integration-tests/src/playbook/scenarios/transfers/transferETH.ts index c19e26de4d..33ef9ed481 100644 --- a/packages/integration-tests/src/playbook/scenarios/transfers/transferETH.ts +++ b/packages/integration-tests/src/playbook/scenarios/transfers/transferETH.ts @@ -3,10 +3,10 @@ import { promises as fs } from "fs"; import * as zksync from "zksync-web3"; import { localConfig } from "../../../config"; -import { Buffer, Logger, txSumEth, Wallets } from "../../../entities"; +import { Buffer, Logger, Values, Wallets } from "../../../entities"; import { Helper } from "../../../helper"; -export const transferEth = async function (sum = txSumEth, address: string = Wallets.mainWalletPrivateKey) { +export const transferEth = async function (sum = Values.txSumETH, address: string = Wallets.mainWalletPrivateKey) { const helper = new Helper(); const syncProvider = new zksync.Provider(localConfig.L2Network); const ethProvider = ethers.getDefaultProvider(localConfig.L1Network); diff --git a/packages/integration-tests/src/playbook/scenarios/withdrawal/withdrawETH.ts b/packages/integration-tests/src/playbook/scenarios/withdrawal/withdrawETH.ts index 55adab2b1f..8d9a1e4bd7 100644 --- a/packages/integration-tests/src/playbook/scenarios/withdrawal/withdrawETH.ts +++ b/packages/integration-tests/src/playbook/scenarios/withdrawal/withdrawETH.ts @@ -3,10 +3,10 @@ import { promises as fs } from "fs"; import * as zksync from "zksync-web3"; import { localConfig } from "../../../config"; -import { Buffer, Logger, txSumEth } from "../../../entities"; +import { Buffer, Logger, Values } from "../../../entities"; import { Helper } from "../../../helper"; -export const withdrawETH = async function (sum = txSumEth) { +export const withdrawETH = async function (sum = Values.txSumETH) { const helper = new Helper(); const syncProvider = new zksync.Provider(localConfig.L2Network); const ethProvider = ethers.getDefaultProvider(localConfig.L1Network); diff --git a/packages/integration-tests/src/playbook/scenarios/withdrawal/withdrawETHtoOtherAddress.ts b/packages/integration-tests/src/playbook/scenarios/withdrawal/withdrawETHtoOtherAddress.ts index b3e975f2ad..dc32bfd07d 100644 --- a/packages/integration-tests/src/playbook/scenarios/withdrawal/withdrawETHtoOtherAddress.ts +++ b/packages/integration-tests/src/playbook/scenarios/withdrawal/withdrawETHtoOtherAddress.ts @@ -3,10 +3,10 @@ import { promises as fs } from "fs"; import * as zksync from "zksync-web3"; import { localConfig } from "../../../config"; -import { Buffer, Logger, txSumEth, Wallets } from "../../../entities"; +import { Buffer, Logger, Values, Wallets } from "../../../entities"; import { Helper } from "../../../helper"; -export const withdrawETHtoOtherAddress = async function (sum = txSumEth) { +export const withdrawETHtoOtherAddress = async function (sum = Values.txSumETH) { const helper = new Helper(); const syncProvider = new zksync.Provider(localConfig.L2Network); const ethProvider = ethers.getDefaultProvider(localConfig.L1Network); diff --git a/packages/integration-tests/tests/ui/transactions.spec.ts b/packages/integration-tests/tests/ui/transactions.spec.ts index d340e0d633..720b29614f 100644 --- a/packages/integration-tests/tests/ui/transactions.spec.ts +++ b/packages/integration-tests/tests/ui/transactions.spec.ts @@ -1,14 +1,13 @@ import { expect, test } from "@playwright/test"; import { config } from "./config"; -import { BlockExplorer, Buffer, Token, txSumEth, Wallets } from "../../src/entities"; +import { BlockExplorer, Buffer, Token, Values, Wallets } from "../../src/entities"; import { Helper } from "../../src/helper"; import type { Locator } from "@playwright/test"; const bufferRoute = "src/playbook/"; const helper = new Helper(); -const txSum = txSumEth; let url: string; let bufferFile; let failedTxHash: string; @@ -69,7 +68,7 @@ test(" Check on BE Transfer ETH token via Portal", async ({ page }) => { await expect(element).toBeVisible(config.extraTimeout); //Check transaction amount - selector = `text=${txSum}`; + selector = `text=${Values.txSumETH}`; element = await page.locator(selector).first(); await expect(element).toBeVisible(config.extraTimeout);