Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding lib tests #392

Merged
merged 2 commits into from
Jul 11, 2024
Merged

Adding lib tests #392

merged 2 commits into from
Jul 11, 2024

Conversation

Dli3
Copy link
Contributor

@Dli3 Dli3 commented Jul 10, 2024

MWPW-154053
Adding lib tests to check which libs are being used.

Note: You may need to run it once to go through okta login once. Afterwards, the authFile should be updated and you can then run in headless mode.

Comment on lines 22 to 24
await context.storageState({ path: authFile });
await page.waitForLoadState('networkidle');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should storageState be after waitForLoadState?

await page.goto('https://main--bacom--adobecom.hlx.page/');

// Uncomment the line below and run in debug mode to update the authFile (login to Okta manually).
// await page.waitForTimeout(1000 * 60 * 2);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you could check if options is empty then wait for timeout?

Copy link
Collaborator

@amauch-adobe amauch-adobe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

utils/getLibs.js Outdated Show resolved Hide resolved
@Dli3 Dli3 merged commit 52c9b4b into main Jul 11, 2024
4 checks passed
@Dli3 Dli3 deleted the checkLibs branch July 11, 2024 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants