chore(codegen): rename script.js to example.py for Python tests (#13945)
This commit is contained in:
Родитель
cfde11b6e2
Коммит
c9429283d7
|
@ -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);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче