Skip to content

Commit

Permalink
Fixing broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-langa committed Dec 19, 2023
1 parent b5fc108 commit 589a08e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/withWallet/aaveV2/aaveV2Multiply.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ test.describe('Aave v2 Multiply - Wallet connected', async () => {
await app.position.manage.shouldBeVisible('Manage Multiply position');
await app.position.manage.openManageOptions({ currentLabel: 'Adjust' });
await app.position.manage.select('Manage collateral');
await app.position.manage.enter({ token: 'ETH', amount: '15' });
await app.position.manage.deposit({ token: 'ETH', amount: '15' });

// Confirm action randomly fails - Retry until it's applied.
await expect(async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/withWallet/aaveV3/base/aaveV3BorrowBase.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ test.describe('Aave V3 Borrow - Base - Wallet connected', async () => {
await app.page.goto('/base/aave/v3/2#overview');

await app.position.manage.shouldBeVisible('Manage collateral');
await app.position.manage.enter({ token: 'ETH', amount: '15' });
await app.position.manage.deposit({ token: 'ETH', amount: '15' });

// Confirm action randomly fails - Retry until it's applied.
await expect(async () => {
Expand Down
8 changes: 4 additions & 4 deletions tests/withWallet/aaveV3/ethereum/aaveV3EarnEthereum.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ test.describe('Aave V3 Earn - Ethereum - Wallet connected', async () => {

await app.position.manage.openManageOptions({ currentLabel: 'Adjust' });
await app.position.manage.select('Manage collateral');
await app.position.manage.enter({ token: 'WSTETH', amount: '20' });
await app.position.manage.deposit({ token: 'WSTETH', amount: '20' });
await expect(async () => {
await app.position.setup.setupAllowance();
await app.position.setup.approveAllowance();
Expand Down Expand Up @@ -102,7 +102,7 @@ test.describe('Aave V3 Earn - Ethereum - Wallet connected', async () => {
await app.position.manage.openManageOptions({ currentLabel: 'Adjust' });
await app.position.manage.select('Manage collateral');
await app.position.manage.withdrawCollateral();
await app.position.manage.enter({ token: 'WSTETH', amount: '5' });
await app.position.manage.withdraw({ token: 'WSTETH', amount: '5' });

// Confirm action randomly fails - Retry until it's applied.
await expect(async () => {
Expand Down Expand Up @@ -131,7 +131,7 @@ test.describe('Aave V3 Earn - Ethereum - Wallet connected', async () => {

await app.position.manage.openManageOptions({ currentLabel: 'Adjust' });
await app.position.manage.select('Manage debt');
await app.position.manage.enter({ token: 'ETH', amount: '5' });
await app.position.manage.borrow({ token: 'ETH', amount: '5' });

// Confirm action randomly fails - Retry until it's applied.
await expect(async () => {
Expand Down Expand Up @@ -161,7 +161,7 @@ test.describe('Aave V3 Earn - Ethereum - Wallet connected', async () => {
await app.position.manage.openManageOptions({ currentLabel: 'Adjust' });
await app.position.manage.select('Manage debt');
await app.position.manage.payBackDebt();
await app.position.manage.enter({ token: 'ETH', amount: '2' });
await app.position.manage.payback({ token: 'ETH', amount: '2' });

// Confirm action randomly fails - Retry until it's applied.
await expect(async () => {
Expand Down

0 comments on commit 589a08e

Please sign in to comment.