Skip to content

Commit

Permalink
Disable local proxying for adclick attribution tests (#2285)
Browse files Browse the repository at this point in the history
  • Loading branch information
sammacbeth committed Oct 23, 2023
1 parent a6654f2 commit 09b27eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
3 changes: 0 additions & 3 deletions integration-test/click-attribution.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { test, expect } from './helpers/playwrightHarness'
import backgroundWait from './helpers/backgroundWait'
import testCases from 'privacy-test-pages/adClickFlow/shared/testCases.json'
import { routeFromLocalhost } from './helpers/testPages'

if (testCases.length === 0) {
throw new Error('No test cases found')
Expand Down Expand Up @@ -51,8 +50,6 @@ test.describe('Ad click blocking', () => {
// Allow to filter to one test case
const itMethod = testCase.only ? test.only : test
itMethod(testCase.name, async ({ context }) => {
// route requests from all pages in this test to our local test server
await routeFromLocalhost(context)
let page = await context.newPage()
for (const step of testCase.steps) {
if (step.action.type === 'navigate') {
Expand Down
7 changes: 1 addition & 6 deletions integration-test/helpers/testPages.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ const testPageHosts = new Set([
'privacy-test-pages.site',
'broken.third-party.site',
'good.third-party.site',
'bad.third-party.site',
'convert.ad-company.site',
// 'www.search-company.site',
// 'www.ad-company.site', - redirects to these domains via route overriding seem to hang, so this one has to hit the real server
'www.publisher-company.site',
'www.payment-company.site'
'bad.third-party.site'
])

export const TEST_SERVER_ORIGIN = 'http://127.0.0.1:3000'
Expand Down

0 comments on commit 09b27eb

Please sign in to comment.