|
15 | 15 | */ |
16 | 16 |
|
17 | 17 | import { test, expect } from './inspectorTest'; |
18 | | -import fs from 'fs'; |
19 | 18 |
|
20 | 19 | test.describe('cli codegen', () => { |
21 | 20 | test.skip(({ mode }) => mode !== 'default'); |
@@ -452,27 +451,6 @@ await page1.GotoAsync("about:blank?foo");`); |
452 | 451 | await recorder.waitForOutput('JavaScript', `await page.goto('${server.PREFIX}/page2.html');`); |
453 | 452 | }); |
454 | 453 |
|
455 | | - test('should save assets via SIGINT', async ({ runCLI, platform }, testInfo) => { |
456 | | - test.skip(platform === 'win32', 'SIGINT not supported on Windows'); |
457 | | - |
458 | | - const storageFileName = testInfo.outputPath('auth.json'); |
459 | | - const harFileName = testInfo.outputPath('har.har'); |
460 | | - const cli = runCLI([`--save-storage=${storageFileName}`, `--save-har=${harFileName}`]); |
461 | | - await cli.waitFor(`import { test, expect } from '@playwright/test'`); |
462 | | - // Since our interrupt is non-graceful, we need to wait for the process to settle. |
463 | | - // This test should be fixed. |
464 | | - await new Promise(resolve => setTimeout(resolve, 2000)); |
465 | | - const { exitCode, signal } = await cli.sigint(); |
466 | | - if (exitCode !== null) { |
467 | | - expect(exitCode).toBe(130); |
468 | | - } else { |
469 | | - // If the runner is slow enough, the process will be forcibly terminated by the signal |
470 | | - expect(signal).toBe('SIGINT'); |
471 | | - } |
472 | | - expect(fs.existsSync(storageFileName)).toBeTruthy(); |
473 | | - expect(fs.existsSync(harFileName)).toBeTruthy(); |
474 | | - }); |
475 | | - |
476 | 454 | test('should fill tricky characters', async ({ openRecorder }) => { |
477 | 455 | const { page, recorder } = await openRecorder(); |
478 | 456 |
|
|
0 commit comments