Skip to content

Commit

Permalink
Increase timeout and add screenshots to prompt login test
Browse files Browse the repository at this point in the history
  • Loading branch information
hectormmg committed Aug 27, 2024
1 parent 50b2398 commit 93baa5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions samples/e2eTestUtils/src/TestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ export async function b2cLocalAccountEnterCredentials(
await screenshot.takeScreenshot(page, "b2cSignInPage");
await page.type("#logonIdentifier", username);
await page.type("#password", accountPwd);
await screenshot.takeScreenshot(page, "b2cSignInPageCredentialsEntered");
await page.click("#next");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe("Auth Code B2C Tests (local account)", () => {
beforeEach(async () => {
context = await browser.createIncognitoBrowserContext();
page = await context.newPage();
page.setDefaultTimeout(5000);
page.setDefaultTimeout(10000);
page.on("dialog", async (dialog) => {
console.log(dialog.message());
await dialog.dismiss();
Expand All @@ -124,6 +124,7 @@ describe("Auth Code B2C Tests (local account)", () => {
username,
accountPwd
);
await screenshot.takeScreenshot(page, "b2cLocalAccountCredentialsSubmitted");
await page.waitForFunction(
`window.location.href.startsWith("${SAMPLE_HOME_URL}")`
);
Expand Down

0 comments on commit 93baa5a

Please sign in to comment.