Skip to content

Commit

Permalink
fix selector
Browse files Browse the repository at this point in the history
  • Loading branch information
annarhughes committed Dec 20, 2023
1 parent a39c44c commit 28c52ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/puppeteerLogin.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 28c52ae

Please sign in to comment.