(page: Page)
| 311 | route.abort('blockedbyclient') |
| 312 | |
| 313 | export async function optimizePageForFastE2E(page: Page) { |
| 314 | const blockAssets = envBoolean('E2E_BLOCK_NON_ESSENTIAL', true) |
| 315 | if (!blockAssets) { |
| 316 | return |
| 317 | } |
| 318 | |
| 319 | await page.route(IMAGE_GLOB, abortRoute) |
| 320 | await page.route(FONT_GLOB, abortRoute) |
| 321 | await page.route(MEDIA_GLOB, abortRoute) |
| 322 | |
| 323 | if (envBoolean('E2E_BLOCK_CSS', false)) { |
| 324 | await page.route(CSS_GLOB, abortRoute) |
| 325 | } |
| 326 | } |
| 327 | |
| 328 | export async function createAppFixture( |
| 329 | options: CreateAppFixtureOptions, |
no test coverage detected