Skip to content

Commit

Permalink
fix: new one
Browse files Browse the repository at this point in the history
  • Loading branch information
olehbairak committed Feb 29, 2024
1 parent dbf4411 commit 382526d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 2 additions & 3 deletions packages/integration-tests/tests/ui/transactions.spec.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 382526d

Please sign in to comment.