From 3860b1fd9991a6016a4b711a77efaefc2bbdd92a Mon Sep 17 00:00:00 2001 From: Sean Rankine Date: Thu, 19 Sep 2024 14:00:40 +0100 Subject: [PATCH] Fix selecting password field to signin This makes the selector more specific so the setup script can successfully login into Signon. --- lib/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils.js b/lib/utils.js index 33b6163..7c35c8c 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -3,8 +3,8 @@ function publishingAppUrl(appName) { } async function logIntoSignon(page) { - await page.getByLabel("Email").fill(process.env.SIGNON_EMAIL); - await page.getByLabel("Password").fill(process.env.SIGNON_PASSWORD); + await page.getByLabel("Email", { exact: true }).fill(process.env.SIGNON_EMAIL); + await page.getByLabel("Password", { exact: true }).fill(process.env.SIGNON_PASSWORD); await page.getByRole("button", { name: "Sign in" }).click(); }