To provide an integration and regression test suite for PrimeFaces, based on our own PrimeFaces Selenium
It utilizes Tomcat Embedded, Weld and different JSF implementations.
- Build the project:
mvn clean package
- When running an integration test the profile
integration-tests
has to be activated and a Faces implementation has to be selected. - Run integration tests with the verify phase and profiles activated:
mvn verify -Pintegration-tests,parallel-execution,myfaces-4.0
- Run a single test with
mvn verify -Pintegration-tests,parallel-execution,myfaces-4.0 -Dit.test=DataTable001Test
⚠️ -Pparallel-execution is currently not supported on Java8
mvn clean jetty:run -Pmyfaces-4.0
- Now you can open it on 'http://localhost:8080/integrationtests/'
firefox
(default)chrome
safari
Keep in mind there are - as of january 2021 - following limitations for Safari webdriver:
- headless-mode is not available (SeleniumHQ/selenium#5985)
- no parallel test-execution because Safari does not allow for concurrent sessions (SeleniumHQ/selenium#2172)
- Safari is only available on MacOS (and iOS / iPadOS)
mojarra-4.0
- Mojarra 4.0 Faces implementationmyfaces-4.0
- MyFaces 4.0 Faces implementation
headless
- headless browserclient-state-saving
- ClientSide instead of ServerSide JSF state savingcsp
- enabled Content Security Policytheme-nova
- Nova themetheme-saga
- Saga theme