Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
fix: protocol generation in monorepo (#9513)
Andrey Lushnikovcd92451b9fba
diff --git a/utils/protocol-types-generator/index.js b/utils/protocol-types-generator/index.jsindex f475ed941e..93e1f9dc39 100644--- a/utils/protocol-types-generator/index.js+++ b/utils/protocol-types-generator/index.js@@ -27,7 +27,7 @@ async function generateChromiumProtocol(executablePath) {}async function generateWebKitProtocol(folderPath) {- const outputPath = path.join(__dirname, '../../src/server/webkit/protocol.d.ts');+ const outputPath = path.join(__dirname, '../../packages/playwright-core/src/server/webkit/protocol.d.ts');const json = JSON.parse(await fs.promises.readFile(path.join(folderPath, '../protocol.json'), 'utf8'));await fs.promises.writeFile(outputPath, jsonToTS({domains: json}));console.log(`Wrote protocol.d.ts for WebKit to ${path.relative(process.cwd(), outputPath)}`);@@ -124,7 +124,7 @@ function typeOfProperty(property, domain) {}async function generateFirefoxProtocol(executablePath) {- const outputPath = path.join(__dirname, '../../src/server/firefox/protocol.d.ts');+ const outputPath = path.join(__dirname, '../../packages/playwright-core/src/server/firefox/protocol.d.ts');const omnija = os.platform() === 'darwin' ?path.join(executablePath, '../../Resources/omni.ja') :path.join(executablePath, '../omni.ja');