Skip to content

Commit

Permalink
Fix onPageLoad tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hectormmg committed Jul 19, 2023
1 parent 80ba1e4 commit fb6fc87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ <h5 class="card-title" id="WelcomeMessage">Please sign-in to see your profile an
</div>
<br>
<br>
<div hidden id="pca-initialized" >
<div hidden id="pca-initialized">
false
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ describe("On Page Load tests", function () {
page = await context.newPage();
page.setDefaultTimeout(ONE_SECOND_IN_MS * 5);
BrowserCache = new BrowserCacheUtils(page, "sessionStorage");
await pcaInitializedPoller(page, 5000);
});

afterEach(async () => {
Expand All @@ -63,6 +62,7 @@ describe("On Page Load tests", function () {

it("Performs loginRedirect on page load", async () => {
await page.goto(sampleHomeUrl);
await pcaInitializedPoller(page, 5000);
const testName = "redirectBaseCase";
const screenshot = new Screenshot(
`${SCREENSHOT_BASE_FOLDER_NAME}/${testName}`
Expand Down

0 comments on commit fb6fc87

Please sign in to comment.