(page: Page, query: string)
| 261 | }); |
| 262 | } |
| 263 | |
| 264 | export async function goTo404Page(page: Page, query: string): Promise<void> { |
| 265 | const responsePromise = page.waitForResponse( |
| 266 | response => |
| 267 | response.url().includes(`/v1/features/${query}`) && |
| 268 | response.request().method() === 'GET', |
| 269 | ); |
| 270 | await page.goto(`${BASE_URL}/features/${query}`); |
| 271 | await responsePromise; |
| 272 | |
| 273 | await expect(page).toHaveURL( |
| 274 | `${BASE_URL}/errors-404/feature-not-found?q=${query}`, |