From f6b9d63439d52b3f5c21008e7714ec4813ff08ac Mon Sep 17 00:00:00 2001 From: Adameddy26 <158989293+Adameddy26@users.noreply.github.com> Date: Thu, 13 Jun 2024 18:45:22 +0530 Subject: [PATCH] Update fulfillment.spec.js --- tests/fulfillment.spec.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/fulfillment.spec.js b/tests/fulfillment.spec.js index 82785038..48b692e9 100644 --- a/tests/fulfillment.spec.js +++ b/tests/fulfillment.spec.js @@ -16,11 +16,8 @@ test('Fulfillment', async () => { await page.waitForTimeout(2000); await page.keyboard.press('Enter'); await page.waitForTimeout(2000); - const username1 = process.env.USERNAME; - console.log('process.env.USERNAME', process.env.USERNAME, username1) - const password1 = process.env.PASSWORD; - await page.fill('input[name="username"]', username1); - await page.fill('input[name="password"]', password1); + await page.fill('input[name="username"]', process.env.USERNAME); + await page.fill('input[name="password"]', process.env.PASSWORD); await page.waitForTimeout(2000); await page.keyboard.press('Enter'); await page.waitForSelector('#app > ion-app > ion-router-outlet > div:nth-child(1) > ion-content > main', {visible:true, timeout:10000}); @@ -225,7 +222,7 @@ test('Fulfillment', async () => { }; const { username, instance, appVersion, buildDateTime } = await getUserDetails(selectors); - expect(username).toContain(username1); + expect(username).toContain(process.env.USERNAME); expect(instance).toContain('ucg-uat'); await page.locator('#main-content > div > ion-content > section:nth-child(3) > ion-card:nth-child(3) > ion-item').click();