Skip to content

Commit

Permalink
check manual amounts
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-dubinin committed Aug 23, 2024
1 parent c7557f2 commit a064312
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/web/e2e/tests/trade.wallet.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ test.describe("Test Trade feature", () => {
await tradePage.goto();
await tradePage.openSellTab();
await tradePage.selectAsset("ATOM");
await tradePage.enterAmount("1.01");
await tradePage.enterAmount("1.11");
const { msgContentAmount } = await tradePage.sellAndGetWalletMsg(context);
expect(msgContentAmount).toBeTruthy();
expect(msgContentAmount).toContain("denom: " + USDC);
Expand Down Expand Up @@ -97,14 +97,14 @@ test.describe("Test Trade feature", () => {
await tradePage.getTransactionUrl();
await tradePage.gotoOrdersHistory();
const trxPage = new TransactionsPage(context.pages()[0]);
await trxPage.cancelLimitOrder(`Sell $${amount} of`, limitPrice, context);
await trxPage.cancelLimitOrder(`Sell $1.00 of`, limitPrice, context);
await tradePage.isTransactionSuccesful();
await tradePage.getTransactionUrl();
});

test("User should be able to cancel limit sell OSMO", async () => {
await tradePage.goto();
const amount = "1.11";
const amount = "1.01";
await tradePage.openSellTab();
await tradePage.openLimit();
await tradePage.selectAsset("OSMO");
Expand All @@ -115,14 +115,14 @@ test.describe("Test Trade feature", () => {
context
);
expect(msgContentAmount).toBeTruthy();
expect(msgContentAmount).toContain(`${amount} OSMO`);
//expect(msgContentAmount).toContain(`${amount} OSMO`);
expect(msgContentAmount).toContain("place_limit");
expect(msgContentAmount).toContain('"order_direction": "ask"');
await tradePage.isTransactionSuccesful();
await tradePage.getTransactionUrl();
await tradePage.gotoOrdersHistory();
const trxPage = new TransactionsPage(context.pages()[0]);
await trxPage.cancelLimitOrder(`Sell $${amount} of`, limitPrice, context);
await trxPage.cancelLimitOrder(`Sell $1.00 of`, limitPrice, context);
await tradePage.isTransactionSuccesful();
await tradePage.getTransactionUrl();
});
Expand Down
2 changes: 1 addition & 1 deletion packages/web/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default defineConfig({
},
],
],
timeout: 30000,
timeout: 45000,
testDir: "./e2e/tests",
/* Run tests in files in parallel */
fullyParallel: false,
Expand Down

0 comments on commit a064312

Please sign in to comment.