From 8483c4aca26c02c1ea693c82f616beea349c8928 Mon Sep 17 00:00:00 2001 From: juan-langa Date: Fri, 22 Mar 2024 15:30:15 +0100 Subject: [PATCH] Omni - more updates --- src/pages/position/protection.ts | 1 - tests/sharedTestSteps/automations.ts | 2 +- .../aaveV3/optimism/aavV3MultOptAutomations_1.spec.ts | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/position/protection.ts b/src/pages/position/protection.ts index 23bd8de8..dfc0e9d8 100644 --- a/src/pages/position/protection.ts +++ b/src/pages/position/protection.ts @@ -21,7 +21,6 @@ export class Protection { } ) { const locator = this.page.getByRole('button', { name: `Set up ${protection}`, exact: true }); - expect(locator, `"Set up ${protection}" button should be visible`).toBeVisible({ timeout }); await this.page.waitForTimeout(1000); await locator.click({ clickCount: 2 }); } diff --git a/tests/sharedTestSteps/automations.ts b/tests/sharedTestSteps/automations.ts index d5972536..93525635 100644 --- a/tests/sharedTestSteps/automations.ts +++ b/tests/sharedTestSteps/automations.ts @@ -25,7 +25,7 @@ export const testRegularStopLoss = async ({ app, forkId }: { app: App; forkId: s await expect(async () => { await app.position.setup.confirmOrRetry(); await tx.confirmAndVerifySuccess({ metamaskAction: 'confirmPermissionToSpend', forkId }); - }).toPass({ timeout: longTestTimeout }); + }).toPass(); }); }; diff --git a/tests/withWallet/aaveV3/optimism/aavV3MultOptAutomations_1.spec.ts b/tests/withWallet/aaveV3/optimism/aavV3MultOptAutomations_1.spec.ts index f208c948..0013399d 100644 --- a/tests/withWallet/aaveV3/optimism/aavV3MultOptAutomations_1.spec.ts +++ b/tests/withWallet/aaveV3/optimism/aavV3MultOptAutomations_1.spec.ts @@ -76,6 +76,7 @@ test.describe('Aave v3 Multiply - Optimism - Wallet connected', async () => { test.setTimeout(longTestTimeout); await app.page.goto('/optimism/aave/v3/2#overview'); + await app.position.overview.shouldBeVisible(); await automations.testRegularStopLoss({ app, forkId }); });