From 7ba77abe611a7f8f04afc4132fcc440871ff04d8 Mon Sep 17 00:00:00 2001 From: Aaron Heckmann Date: Fri, 6 Jun 2025 10:43:42 -0700 Subject: [PATCH] test(integration): fix password step --- tests/integration-tests/tests/auth.setup.ts | 9 ++--- tests/integration-tests/yarn.lock | 41 +++++++++++++++++++++ 2 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 tests/integration-tests/yarn.lock diff --git a/tests/integration-tests/tests/auth.setup.ts b/tests/integration-tests/tests/auth.setup.ts index 4ab9a19ece..865e76118d 100644 --- a/tests/integration-tests/tests/auth.setup.ts +++ b/tests/integration-tests/tests/auth.setup.ts @@ -1,11 +1,10 @@ import { test as setup } from '@playwright/test'; import path from 'path'; - const authFile = path.join(__dirname, '../playwright/.auth/user.json'); setup('authenticate', async ({ page }) => { - + const BASE_URL = process.env.BASE_URL; const EMAIL = process.env.EMAIL; // decode the password @@ -20,8 +19,8 @@ setup('authenticate', async ({ page }) => { if (await page.getByRole('button', { name: 'Continue' }).isVisible()) { await page.getByRole('button', { name: 'Continue' }).click(); } - await page.getByRole('textbox', { name: 'Enter password' }).click(); - await page.getByRole('textbox', { name: 'Enter password' }).fill(PWD); + await page.getByRole('textbox', { name: 'password' }).click(); + await page.getByRole('textbox', { name: 'password' }).fill(PWD); await page.keyboard.press('Enter'); @@ -29,4 +28,4 @@ setup('authenticate', async ({ page }) => { await page.waitForTimeout(1000); await page.context().storageState({ path: authFile }); -}); \ No newline at end of file +}); diff --git a/tests/integration-tests/yarn.lock b/tests/integration-tests/yarn.lock new file mode 100644 index 0000000000..a06a19f9f3 --- /dev/null +++ b/tests/integration-tests/yarn.lock @@ -0,0 +1,41 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@playwright/test@^1.51.1": + version "1.52.0" + resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.52.0.tgz#267ec595b43a8f4fa5e444ea503689629e91a5b8" + integrity sha512-uh6W7sb55hl7D6vsAeA+V2p5JnlAqzhqFyF0VcJkKZXkgnFcVG9PziERRHQfPLfNGx1C292a4JqbWzhR8L4R1g== + dependencies: + playwright "1.52.0" + +"@types/node@^22.13.14": + version "22.15.30" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.15.30.tgz#3a20431783e28dd0b0326f84ab386a2ec81d921d" + integrity sha512-6Q7lr06bEHdlfplU6YRbgG1SFBdlsfNC4/lX+SkhiTs0cpJkOElmWls8PxDFv4yY/xKb8Y6SO0OmSX4wgqTZbA== + dependencies: + undici-types "~6.21.0" + +fsevents@2.3.2: + version "2.3.2" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" + integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== + +playwright-core@1.52.0: + version "1.52.0" + resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.52.0.tgz#238f1f0c3edd4ebba0434ce3f4401900319a3dca" + integrity sha512-l2osTgLXSMeuLZOML9qYODUQoPPnUsKsb5/P6LJ2e6uPKXUdPK5WYhN4z03G+YNbWmGDY4YENauNu4ZKczreHg== + +playwright@1.52.0: + version "1.52.0" + resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.52.0.tgz#26cb9a63346651e1c54c8805acfd85683173d4bd" + integrity sha512-JAwMNMBlxJ2oD1kce4KPtMkDeKGHQstdpFPcPH3maElAXon/QZeTvtsfXmTMRyO9TslfoYOXkSsvao2nE1ilTw== + dependencies: + playwright-core "1.52.0" + optionalDependencies: + fsevents "2.3.2" + +undici-types@~6.21.0: + version "6.21.0" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.21.0.tgz#691d00af3909be93a7faa13be61b3a5b50ef12cb" + integrity sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==