-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add Support for Selenium Tests #437
Conversation
brideck
commented
Mar 1, 2023
- Adds Selenium implementation for Faces Ajax test
- Adds Selenium implementation for Faces Ajax test
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.
LGTM
Any other review comments @manovotn @Ladicek @starksm64 ? Appreciate your feedback. Thanks in advance! |
@Emily-Jiang some licensing discussion: jakartaee/faces#1794 (comment) |
@Emily-Jiang @brideck license discussion has finalized: jakartaee/faces#1794 contains the details. This PR is good to go with the Apache copyright header. |
I plan to merge this PR tomorrow morning. If you have any objections, please shout asap. @starksm64 just a heads up, I will need some help from you to do a service release after this PR is merged. |
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.
I plan to merge this PR tomorrow morning. If you have any objections, please shout asap.
Shouldn't we instead look to remove htmlunit altogether and replace it with selenium tests?
This PR only adds a special-case execution for a singular test.
What are the requirements on impl side to execute such test?
In fact, I think there should be some documentation in terms of requirements for TCK execution and what setup is needed in the TCK doc.
@starksm64 just a heads up, I will need some help from you to do a service release after this PR is merged.
@Emily-Jiang as a committer you are able to access the Jenkins yourself and run the TCK release job followed up by the maven repo release job. I assume it's even documented somewhere but I have no idea where from the top of my head :)
I don't think that a wholesale technology replacement would be an appropriate change for a TCK service release. The change is designed to provide zero impact to implementations that are already passing the TCK as-is. They would just continue to run with no changes, without adding the new property.
We could certainly add something to the documentation. Because the logic is the same between the two test implementations, the idea is that someone would only need run one or the other, depending on the modernity of their Faces implementation's javascript support. The changes are that someone running the Selenium tests would need to set the property in their TCK runner and also provide Chrome in their test environment. |
I've added a note to the documentation explaining why and how you would want to use this new support. |
I don't feel capable of reviewing this, but the changes seem pretty well isolated and easy to reuse / generalize / remove when we move off of HtmlUnit, so I guess I'm fine with this. |
Fair enough, I've created #441 to track the future change.
Thanks! |
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.
I don't fully understand the internals of the problem but the solution is well isolated and doesn't affects other impls testing it, hence my approval :)