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
docs: fix the global setup example (#7005)
Pavel Feldmane0150338ac26
diff --git a/docs/src/test-advanced.md b/docs/src/test-advanced.mdindex b8d18d7e55..c178554fec 100644--- a/docs/src/test-advanced.md+++ b/docs/src/test-advanced.md@@ -248,7 +248,7 @@ Now add `globalSetup` option to the configuration file.```js js-flavor=js// playwright.config.jsmodule.export = {- globalSetup: 'global-setup.js',+ globalSetup: require.resolve('./global-setup'),};```@@ -257,7 +257,7 @@ module.export = {import { PlaywrightTestConfig } from '@playwright/test';const config: PlaywrightTestConfig = {- globalSetup: 'global-setup.ts',+ globalSetup: require.resolve('./global-setup'),};export default config;```