diff --git a/tests/library/inspector/cli-codegen-python-async.spec.ts b/tests/library/inspector/cli-codegen-python-async.spec.ts index b7b2507adf..631e160a7b 100644 --- a/tests/library/inspector/cli-codegen-python-async.spec.ts +++ b/tests/library/inspector/cli-codegen-python-async.spec.ts @@ -84,7 +84,7 @@ async def run(playwright: Playwright) -> None: }); test('should save the codegen output to a file if specified', async ({ browserName, channel, runCLI }, testInfo) => { - const tmpFile = testInfo.outputPath('script.js'); + const tmpFile = testInfo.outputPath('example.py'); const cli = runCLI(['--target=python-async', '--output', tmpFile, emptyHTML]); await cli.exited; const content = fs.readFileSync(tmpFile); diff --git a/tests/library/inspector/cli-codegen-python.spec.ts b/tests/library/inspector/cli-codegen-python.spec.ts index 53bb91924a..40b81476dd 100644 --- a/tests/library/inspector/cli-codegen-python.spec.ts +++ b/tests/library/inspector/cli-codegen-python.spec.ts @@ -76,7 +76,7 @@ def run(playwright: Playwright) -> None: }); test('should save the codegen output to a file if specified', async ({ runCLI, channel, browserName }, testInfo) => { - const tmpFile = testInfo.outputPath('script.js'); + const tmpFile = testInfo.outputPath('example.py'); const cli = runCLI(['--target=python', '--output', tmpFile, emptyHTML]); await cli.exited; const content = fs.readFileSync(tmpFile);