Skip to content

Commit

Permalink
Merge pull request #1775 from oasisprotocol/lw/playwright-todo
Browse files Browse the repository at this point in the history
Revert TODOs from "Avoid playwright's buggy test.fail() skipping tests"
  • Loading branch information
lukaw3d authored Nov 27, 2023
2 parents d45d397 + 6f159de commit 0f0b432
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .changelog/1775.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Revert TODOs from "Avoid playwright's buggy test.fail() skipping tests"
4 changes: 2 additions & 2 deletions playwright/tests/fiat.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ test.describe('Fiat on-ramp', () => {
test('Content-Security-Policy should block unknown iframe and fail', async ({ page }) => {
test.fail()
expect((await page.request.head('/')).headers()).toHaveProperty('content-security-policy')
// await expectNoErrorsInConsole(page) // TODO: revert when playwright doesn't skip other tests because of this
await expectNoErrorsInConsole(page)
await setup(page)
await page.route('https://*.transak.com/*', route =>
route.fulfill({ status: 301, headers: { Location: 'https://phishing-transak.com/' } }),
Expand All @@ -79,7 +79,7 @@ test.describe('Fiat on-ramp', () => {

test('Sandbox should block top-navigation from iframe and fail', async ({ page }) => {
test.fail()
// await expectNoErrorsInConsole(page) // TODO: revert when playwright doesn't skip other tests because of this
await expectNoErrorsInConsole(page)
await setup(page)
await page.route('https://*.transak.com/*', route =>
route.fulfill({
Expand Down

0 comments on commit 0f0b432

Please sign in to comment.