From cf1a7232076d54e44172e33dad16b188acb5f90a Mon Sep 17 00:00:00 2001 From: juan-langa Date: Fri, 10 Nov 2023 14:33:06 +0100 Subject: [PATCH] Fixes for no-wallet flaky tests --- tests/noWallet/aaveV3/ethereum/aaveV3BorrowEthereum.spec.ts | 4 ++-- tests/noWallet/aaveV3/ethereum/aaveV3MultiplyEthereum.spec.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/noWallet/aaveV3/ethereum/aaveV3BorrowEthereum.spec.ts b/tests/noWallet/aaveV3/ethereum/aaveV3BorrowEthereum.spec.ts index 1380e5bb..c0a2b365 100644 --- a/tests/noWallet/aaveV3/ethereum/aaveV3BorrowEthereum.spec.ts +++ b/tests/noWallet/aaveV3/ethereum/aaveV3BorrowEthereum.spec.ts @@ -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({ @@ -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' }); }); diff --git a/tests/noWallet/aaveV3/ethereum/aaveV3MultiplyEthereum.spec.ts b/tests/noWallet/aaveV3/ethereum/aaveV3MultiplyEthereum.spec.ts index f383a3b0..1c8832b6 100644 --- a/tests/noWallet/aaveV3/ethereum/aaveV3MultiplyEthereum.spec.ts +++ b/tests/noWallet/aaveV3/ethereum/aaveV3MultiplyEthereum.spec.ts @@ -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',