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

fix(test): 🚧 Making e2e Tests work again. #1308

Merged
merged 3 commits into from
Jan 3, 2024
Merged

Conversation

whizzzkid
Copy link
Contributor

@whizzzkid whizzzkid commented Dec 15, 2023

Related to: #1300

In this PR:

More in comments.

Signed-off-by: Nishant Arora <1895906+whizzzkid@users.noreply.github.com>
@whizzzkid whizzzkid requested review from lidel and a team as code owners December 15, 2023 10:12
Copy link
Contributor Author

@whizzzkid whizzzkid left a comment

Choose a reason for hiding this comment

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

explainers.

Comment on lines 77 to 79
// if (url.includes('landing-pages/permissions/request.html')) {
// //By.tagName is deprecated, replacement is called By.css() for some reason.
// browser.findElement(By.css('button')).click()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

executing this code, results in:

stuck_at_grant_permissions

Comment on lines 211 to 215
// - using custom profiles.
// - Clicking grant permissions button on line-74, but that results in a popup which is not interactable.
// - using capabilities (in builder section, to handler alert popups and accept all).
// https://www.selenium.dev/selenium/docs/api/javascript/module/selenium-webdriver/lib/capabilities_exports_Capabilities.html
// selenium has different interfaces for chrome permissions, e.g.: https://github.com/SeleniumHQ/selenium/blob/selenium-4.10.0/javascript/node/selenium-webdriver/test/chrome/permission_test.js#L37
Copy link
Contributor Author

Choose a reason for hiding this comment

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

tried all of this, does not work.

test/e2e/ipfs-companion.test.js Show resolved Hide resolved
@BigLep BigLep requested a review from SgtPooki January 3, 2024 22:48
@BigLep
Copy link
Contributor

BigLep commented Jan 3, 2024

@SgtPooki : can you take on reviewing this and getting it over the line?

@SgtPooki SgtPooki self-assigned this Jan 3, 2024
@SgtPooki SgtPooki merged commit 6f17967 into main Jan 3, 2024
5 checks passed
@SgtPooki SgtPooki deleted the fix/e2e-broken branch January 3, 2024 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants