From 28c52aeffebf3e873d5e03e9990187abc55e42e9 Mon Sep 17 00:00:00 2001 From: annarhughes Date: Wed, 20 Dec 2023 21:18:20 +0000 Subject: [PATCH] fix selector --- config/puppeteerLogin.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/puppeteerLogin.js b/config/puppeteerLogin.js index 29bd6c0c..e3df617b 100644 --- a/config/puppeteerLogin.js +++ b/config/puppeteerLogin.js @@ -1,11 +1,11 @@ async function login(page) { await page.goto('https://bloom-frontend-git-develop-chaynhq.vercel.app/auth/login'); - await page.waitForSelector('#email', { visible: true }); + await page.waitForSelector('input[type="email"]', { visible: true }); - await page.type('#email"', process.env.USER_EMAIL); - await page.type('#password', process.env.USER_PASSWORD); + await page.type('input[id="email"]', process.env.USER_EMAIL); + await page.type('input[id="password"]', process.env.USER_PASSWORD); await page.click('[type="submit"]'); - await page.waitForSelector('#email', { visible: false }); + await page.waitForSelector('input[type="email"]', { visible: false }); } let counter = 1;