Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs: fix wrong input field name on GitHub auth (#13315)

Josep Vidalc69c74cababa
diff --git a/docs/src/test-auth-js.md b/docs/src/test-auth-js.md
index 471bac1e2f..703f64681a 100644
--- a/docs/src/test-auth-js.md
+++ b/docs/src/test-auth-js.md
@@ -77,7 +77,7 @@ module.exports = async config => {
const browser = await chromium.launch();
const page = await browser.newPage();
await page.goto('https://github.com/login');
- await page.fill('input[name="user"]', 'user');
+ await page.fill('input[name="login"]', 'user');
await page.fill('input[name="password"]', 'password');
await page.click('text=Sign in');
// Save signed-in state to 'storageState.json'.
@@ -94,7 +94,7 @@ async function globalSetup(config: FullConfig) {
const browser = await chromium.launch();
const page = await browser.newPage();
await page.goto('https://github.com/login');
- await page.fill('input[name="user"]', 'user');
+ await page.fill('input[name="login"]', 'user');
await page.fill('input[name="password"]', 'password');
await page.click('text=Sign in');
// Save signed-in state to 'storageState.json'.