Skip to content

Commit

Permalink
Omni - more updates
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-langa committed Mar 22, 2024
1 parent 63d373b commit 8483c4a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/pages/position/protection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
Expand Down
2 changes: 1 addition & 1 deletion tests/sharedTestSteps/automations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
});
Expand Down

0 comments on commit 8483c4a

Please sign in to comment.