Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlilley committed Sep 12, 2024
1 parent 0079f1c commit 78f41ed
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/web/test/pool/pool.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ test.beforeEach(async ({ page, next }) => {
})
})

test.afterEach(async ({ page }) => {
await page.unrouteAll({ behavior: 'ignoreErrors' })
})

// Tests will only work for polygon atm
test.describe('V3', () => {
test.skip(!isSushiSwapV3ChainId(chainId))
Expand Down
4 changes: 4 additions & 0 deletions apps/web/test/swap/cross-chain.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ test.beforeEach(async ({ page }) => {
await switchNetwork(page, srcChainId)
})

test.afterEach(async ({ page }) => {
await page.unrouteAll({ behavior: 'ignoreErrors' })
})

test('Bridge Native to Native', async ({ page }) => {
test.slow()
await xswap(
Expand Down
4 changes: 4 additions & 0 deletions apps/web/test/swap/simple.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ test.beforeEach(async ({ page, next }) => {
})
})

test.afterEach(async ({ page }) => {
await page.unrouteAll({ behavior: 'ignoreErrors' })
})

test('Wrap and unwrap', async ({ page }) => {
test.slow()
const swapPage = new SwapPage(page, chainId)
Expand Down

0 comments on commit 78f41ed

Please sign in to comment.