Skip to content

Commit

Permalink
Merge pull request #67 from OasisDEX/no-wallet-flaky-tests-fixes
Browse files Browse the repository at this point in the history
Fixes for no-wallet flaky tests
  • Loading branch information
juan-langa authored Nov 10, 2023
2 parents 490ebed + cf1a723 commit bfc3451
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/noWallet/aaveV3/ethereum/aaveV3BorrowEthereum.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ test.describe('Aave v3 Borrow Ethereum', async () => {
await app.position.setup.borrow({ token: 'USDC', amount: '10000' });

await app.position.overview.shouldHaveLiquidationPriceAfterPill('[1-9][0-9]{2}.[0-9]{2}');
await app.position.overview.shouldHaveLoanToValueAfterPill('[1-9][0-9].[0-9]{2}%');
await app.position.overview.shouldHaveLoanToValueAfterPill('[0-9]{1,2}.[0-9]{2}%');
await app.position.overview.shouldHaveNetValueAfterPill('[5-9][0-9],[0-9]{3}.[0-9]{2}');
await app.position.overview.shouldHaveDebtAfterPill({ amount: '10,000.0000', token: 'USDC' });
await app.position.setup.orderInformation.shouldHaveOutstandingDebt({
Expand All @@ -44,7 +44,7 @@ test.describe('Aave v3 Borrow Ethereum', async () => {
});
await app.position.orderInformation.shouldHaveLTV({
current: '0.00',
future: '1[0-9].[0-9]{2}',
future: '[0-9]{1,2}.[0-9]{2}',
});
await app.position.setup.orderInformation.shouldHaveTransactionFee({ fee: '0' });
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test.describe('Aave v3 Multiply Ethereum', async () => {
await app.position.overview.shouldHaveLiquidationPriceAfterPill('[4-9],[0-9]{3}.[0-9]{2}');
await app.position.overview.shouldHaveLoanToValueAfterPill('[1-4][0-9].[0-9]{2}%');
await app.position.overview.shouldHaveBorrowCostAfterPill('[0-9].[0-9]{2}');
await app.position.overview.shouldHaveNetValueAfterPill('[4-8][0-9],[0-9]{3}.[0-9]{2}');
await app.position.overview.shouldHaveNetValueAfterPill('[0-9]{2,3},[0-9]{3}.[0-9]{2}');
await app.position.overview.shouldHaveExposureAfterPill({
amount: '[2-4].[0-9]{5}',
token: 'WBTC',
Expand Down

0 comments on commit bfc3451

Please sign in to comment.