From 490c50281dc6caf4d91c7ccb0aca962dc8a36dd2 Mon Sep 17 00:00:00 2001 From: yakuramori <62520712+yury-dubinin@users.noreply.github.com> Date: Tue, 29 Oct 2024 10:42:27 +0100 Subject: [PATCH] Increase order amounts (#3921) --- packages/web/e2e/tests/monitoring.limit.wallet.spec.ts | 5 ++--- packages/web/e2e/tests/monitoring.market.wallet.spec.ts | 7 +++---- packages/web/e2e/tests/portfolio.wallet.spec.ts | 6 +++--- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/packages/web/e2e/tests/monitoring.limit.wallet.spec.ts b/packages/web/e2e/tests/monitoring.limit.wallet.spec.ts index 9c15ebdd33..0a4ffab161 100644 --- a/packages/web/e2e/tests/monitoring.limit.wallet.spec.ts +++ b/packages/web/e2e/tests/monitoring.limit.wallet.spec.ts @@ -1,6 +1,5 @@ /* eslint-disable import/no-extraneous-dependencies */ import { type BrowserContext, chromium, expect, test } from "@playwright/test"; -import process from "process"; import { TransactionsPage } from "~/e2e/pages/transactions-page"; import { TestConfig } from "~/e2e/test-config"; @@ -69,7 +68,7 @@ test.describe("Test Filled Limit Order feature", () => { await tradePage.openBuyTab(); await tradePage.openLimit(); await tradePage.selectAsset("OSMO"); - await tradePage.enterAmount("1.02"); + await tradePage.enterAmount("1.04"); await tradePage.setLimitPriceChange("Market"); const limitPrice = Number(await tradePage.getLimitPrice()); const highLimitPrice = (limitPrice * PRICE_INCREASE_FACTOR).toFixed(4); @@ -79,7 +78,7 @@ test.describe("Test Filled Limit Order feature", () => { true ); expect(msgContentAmount, "No msg from the wallet!").toBeTruthy(); - expect(msgContentAmount).toContain('"quantity": "1020000"'); + expect(msgContentAmount).toContain('"quantity": "1040000"'); expect(msgContentAmount).toContain("place_limit"); expect(msgContentAmount).toContain('"order_direction": "bid"'); await tradePage.isTransactionSuccesful(); diff --git a/packages/web/e2e/tests/monitoring.market.wallet.spec.ts b/packages/web/e2e/tests/monitoring.market.wallet.spec.ts index 57556b9729..aef992d0d1 100644 --- a/packages/web/e2e/tests/monitoring.market.wallet.spec.ts +++ b/packages/web/e2e/tests/monitoring.market.wallet.spec.ts @@ -1,6 +1,5 @@ /* eslint-disable import/no-extraneous-dependencies */ import { type BrowserContext, chromium, expect, test } from "@playwright/test"; -import process from "process"; import { TestConfig } from "~/e2e/test-config"; import { UnzipExtension } from "~/e2e/unzip-extension"; @@ -49,7 +48,7 @@ test.describe("Test Filled Limit Order feature", () => { await tradePage.goto(); await tradePage.openBuyTab(); await tradePage.selectAsset(name); - await tradePage.enterAmount("0.75"); + await tradePage.enterAmount("1.05"); const { msgContentAmount } = await tradePage.buyAndGetWalletMsg(context); expect(msgContentAmount).toBeTruthy(); expect(msgContentAmount).toContain("type: osmosis/poolmanager/"); @@ -63,7 +62,7 @@ test.describe("Test Filled Limit Order feature", () => { await tradePage.goto(); await tradePage.openSellTab(); await tradePage.selectAsset("WBTC"); - await tradePage.enterAmount("0.74"); + await tradePage.enterAmount("1.04"); await tradePage.isSufficientBalanceForTrade(); await tradePage.showSwapInfo(); const { msgContentAmount } = await tradePage.sellAndGetWalletMsg(context); @@ -77,7 +76,7 @@ test.describe("Test Filled Limit Order feature", () => { await tradePage.goto(); await tradePage.openSellTab(); await tradePage.selectAsset("OSMO"); - await tradePage.enterAmount("0.74"); + await tradePage.enterAmount("1.04"); await tradePage.isSufficientBalanceForTrade(); await tradePage.showSwapInfo(); const { msgContentAmount } = await tradePage.sellAndGetWalletMsg(context); diff --git a/packages/web/e2e/tests/portfolio.wallet.spec.ts b/packages/web/e2e/tests/portfolio.wallet.spec.ts index a10c18a028..4ce12f9997 100644 --- a/packages/web/e2e/tests/portfolio.wallet.spec.ts +++ b/packages/web/e2e/tests/portfolio.wallet.spec.ts @@ -1,4 +1,3 @@ -/* eslint-disable import/no-extraneous-dependencies */ import { type BrowserContext, chromium, @@ -7,7 +6,6 @@ import { test, } from "@playwright/test"; import { addCoverageReport, attachCoverageReport } from "monocart-reporter"; -import process from "process"; import { TestConfig } from "~/e2e/test-config"; import { UnzipExtension } from "~/e2e/unzip-extension"; @@ -62,6 +60,7 @@ test.describe("Test Portfolio feature", () => { await context.close(); }); + // biome-ignore lint/complexity/noForEach: [ { name: "OSMO" }, { name: "ATOM" }, @@ -77,14 +76,15 @@ test.describe("Test Portfolio feature", () => { }); }); + // biome-ignore lint/complexity/noForEach: [ { name: "INJ" }, { name: "ETH.axl" }, - { name: "KUJI" }, { name: "SOL" }, { name: "milkTIA" }, { name: "BTC" }, { name: "WBTC" }, + { name: "ETH" }, ].forEach(({ name }) => { test(`User should be able to see bridged balances for ${name}`, async () => { await portfolioPage.searchForToken(name);