From f1fc0e6b277361dee75da4c3c77d646b59adb413 Mon Sep 17 00:00:00 2001 From: Adameddy26 <158989293+Adameddy26@users.noreply.github.com> Date: Fri, 14 Jun 2024 18:55:28 +0530 Subject: [PATCH] Update launchpad.spec.js --- tests/launchpad.spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/launchpad.spec.js b/tests/launchpad.spec.js index d1b58e69..ca66e27f 100644 --- a/tests/launchpad.spec.js +++ b/tests/launchpad.spec.js @@ -44,13 +44,13 @@ test ('Launchpad', async () => { // Login with user credentials await page.click('text=Login'); await page.waitForTimeout(2000); - await page.fill('input[name="instanceUrl"]', 'dev-oms'); + await page.fill('input[name="instanceUrl"]', process.env.INSTANCE); const enteredValue = await page.$eval('input[name="instanceUrl"]', el => el.value); // retrives the value attribute of the input element with name="instanceUrl await page.waitForTimeout(2000); await page.keyboard.press('Enter'); await page.waitForTimeout(2000); - await page.locator('input[name="username"]').fill('hotwax.user'); - await page.locator('input[name="password"]').fill('hotwax@786'); + await page.locator('input[name="username"]').fill(process.env.USERNAME); + await page.locator('input[name="password"]').fill(process.env.PASSWORD); await page.waitForTimeout(2000); await page.keyboard.press('Enter'); await page.waitForTimeout(2000); @@ -94,4 +94,4 @@ test ('Launchpad', async () => { } await page.close(); await browser.close(); -}); \ No newline at end of file +});