Skip to content

Commit

Permalink
Update launchpad.spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Adameddy26 authored Jun 14, 2024
1 parent 778ce95 commit f1fc0e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/launchpad.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -94,4 +94,4 @@ test ('Launchpad', async () => {
}
await page.close();
await browser.close();
});
});

0 comments on commit f1fc0e6

Please sign in to comment.