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

This commit is contained in:
Josep Vidal 2022-04-05 22:13:02 +02:00 committed by GitHub
parent 1e45811320
commit c69c74caba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'.