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 коммит произвёл GitHub
Родитель cfde11b6e2
Коммит c9429283d7
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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) => { 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]); const cli = runCLI(['--target=python-async', '--output', tmpFile, emptyHTML]);
await cli.exited; await cli.exited;
const content = fs.readFileSync(tmpFile); const content = fs.readFileSync(tmpFile);

Просмотреть файл

@ -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) => { 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]); const cli = runCLI(['--target=python', '--output', tmpFile, emptyHTML]);
await cli.exited; await cli.exited;
const content = fs.readFileSync(tmpFile); const content = fs.readFileSync(tmpFile);