Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
fix(core-suggest-test): http was altered to https in firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
klizter committed Aug 17, 2023
1 parent 9cabadf commit 0e5a6b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core-suggest/core-suggest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test.describe('core-suggest', () => {
const CAPTURE_SUCCESS_EVENT_FUNCTION = 'captureSuccessEvent'
const CAPTURE_ERROR_EVENT_FUNCTION = 'captureErrorEvent'
const TEST_URL = '/random/search'
const TEST_BAD_URL = 'http://foo/'
const TEST_BAD_URL = 'https://foo/'
const TEST_ERROR_RESPONSE = '{"error": "Go away"}'
const TEST_JSON_RESPONSE = { results: [] }
const TEST_BAD_JSON_RESPONSE = '{"I am bad JSON"}'
Expand Down Expand Up @@ -251,7 +251,7 @@ test.describe('core-suggest', () => {
<core-suggest data-testid="core-suggest" ajax="${TEST_BAD_URL}" hidden></core-suggest>
`)
await page.addScriptTag({ content: `
document.addEventListener('suggest.ajax.error', event => window.captureErrorEvent(event))
document.addEventListener('suggest.ajax.error', window.captureErrorEvent)
`})
await page.route(TEST_BAD_URL, async route => {
await route.abort('blockedbyresponse')
Expand Down

0 comments on commit 0e5a6b0

Please sign in to comment.