-
Notifications
You must be signed in to change notification settings - Fork 35
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
Adding lib tests #392
Conversation
tests/bacom/libs.test.js
Outdated
await context.storageState({ path: authFile }); | ||
await page.waitForLoadState('networkidle'); |
There was a problem hiding this comment.
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
?
tests/bacom/libs.test.js
Outdated
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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved.
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.