chore(codegen): rename script.js to example.py for Python tests (#13945)

This commit is contained in:
Ronie Martinez 2022-05-05 01:15:09 +02:00 committed by GitHub
parent cfde11b6e2
commit c9429283d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);