In a local development environment, testers make use of Selenium Manager via the ui-test-runner library to manage configuring, starting and stopping browsers used for UI journey tests.
Clone the project [https://github.com/hmrc/single-cust-account-wrapper-acceptance-ui-tests ] to a directory of your choice
To start the service - Go to terminal instance run: sm2 --start SCA_FUTURES_UI_TESTS
To checks if all required services are running sm2 -s
Setup MongoDB instructions https://docs.tax.service.gov.uk/mdtp-handbook/documentation/developer-set-up/set-up-mongodb.html Make sure that Mongo run locally
Navigate to the directory where you cloned the tests. Run: ./run_tests.sh
The tests will run locally in headless mode by default
if you want to see the running browser locally then enable the system property -Dbrowser.option.headless=false
Create a new JUnit task
Change use "classpath of module" to single-cust-account-wrapper-acceptance-ui-tests
To run WIP only, use the class uk.gov.hmrc.test.ui.cucumber.runner.wip
To run headless, add in the VM option
-Dbrowser.option.headless=false
Check all project files are formatted as expected as follows:
sbt scalafmtCheckAll scalafmtCheckFormat *.sbt and project/*.scala files as follows:
sbt scalafmtSbtFormat all project files as follows:
sbt scalafmtAll