Skip to content

Commit

Permalink
Increase order amounts (#3921)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-dubinin authored Oct 29, 2024
1 parent c483069 commit 490c502
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
5 changes: 2 additions & 3 deletions packages/web/e2e/tests/monitoring.limit.wallet.spec.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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);
Expand All @@ -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();
Expand Down
7 changes: 3 additions & 4 deletions packages/web/e2e/tests/monitoring.market.wallet.spec.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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/");
Expand All @@ -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);
Expand All @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions packages/web/e2e/tests/portfolio.wallet.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/no-extraneous-dependencies */
import {
type BrowserContext,
chromium,
Expand All @@ -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";
Expand Down Expand Up @@ -62,6 +60,7 @@ test.describe("Test Portfolio feature", () => {
await context.close();
});

// biome-ignore lint/complexity/noForEach: <explanation>
[
{ name: "OSMO" },
{ name: "ATOM" },
Expand All @@ -77,14 +76,15 @@ test.describe("Test Portfolio feature", () => {
});
});

// biome-ignore lint/complexity/noForEach: <explanation>
[
{ 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);
Expand Down

0 comments on commit 490c502

Please sign in to comment.