Skip to content

FISH-8910 - adding UI tests #86

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

Merged
merged 6 commits into from
May 12, 2025

Conversation

simonladen
Copy link
Contributor

@simonladen simonladen commented Apr 15, 2025

The purpose here is to add UI tests for Payara starter (starter-ui).
It contains locators for most elements in the page, methods to interact with the page and 2 scenarios creating a simple application.

To run the UI tests, the user needs to:

Set OPEN_API_KEY in /starter-ui/src/main/resources/META_INF/microprofile-config.properties.

Run from the ecosystem-starter directory the command mvn clean install payara-micro:starter -DcontextRoot="payara-starter" -DdeployWar=true -f ./starter-ui

Run the UI tests against http://localhost:8080/payara-starter with from the ecosystem-starter/starter-ui directory with mvn verify -Pe2e

(for the purpose of debugging, the tests are run in headed mode)

Future improvements:
Unzip and check the generated application, expecting the presence of specific files and/or to contain specific values https://payara.atlassian.net/browse/FISH-10903
Add many scenarios to cover several test cases (combining UI testing and file testing) https://payara.atlassian.net/browse/FISH-10904
Integrate these e2e tests in the pipeline in Jenkins https://payara.atlassian.net/browse/FISH-11021

@simonladen simonladen changed the title WIP FISH-8910 - adding UI tests WIP FISH-8910 - adding UI tests Payara5 Apr 16, 2025
@simonladen simonladen changed the title WIP FISH-8910 - adding UI tests Payara5 WIP FISH-8910 - adding UI tests Apr 16, 2025
@simonladen simonladen changed the title WIP FISH-8910 - adding UI tests FISH-8910 - adding UI tests Apr 30, 2025
@simonladen simonladen requested a review from jGauravGupta May 1, 2025 12:56
@luiseufrasio luiseufrasio self-requested a review May 12, 2025 11:01
Copy link
Contributor

@luiseufrasio luiseufrasio left a comment

Choose a reason for hiding this comment

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

Worked fine:

[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO]
[INFO] --- failsafe:3.5.3:verify (run-tests) @ payara-starter-ui ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:39 min
[INFO] Finished at: 2025-05-12T10:31:09-03:00
[INFO] ------------------------------------------------------------------------

@simonladen simonladen merged commit ac9163c into payara:master May 12, 2025
1 check passed
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.

2 participants