/src
/test
/local_js
/readme
src/test: Test code.config: Configuration files.local_js: Local JS files required for Node Tasks.readme: Readme attachments folder.
*.e2e-test.js: End to End test file
Only use .e2e-test.js suffix for Test classes name, tests are processed based on this.
gradlew :front:e2e:tasks: Lists the runnable tasks for end to end test project.
Uses ESlint.
- ESlint rules are spread all over the
e2efolder through.eslintrc.jsonfiles.
To highlights:
- Line length limit is ignored for lines with some patterns:
- With URLs.
- Strings should use double quotes for strings [1].
To execute this task
gradlew assess: ESLint checks
This task will assess test code and configuration code.
[1] To be consistent with Backend code.
- End to end tests are Jasmine + Selenium tests defined in
e2e-test.jsfiles.- Configuration is in
e2e.js.const BROWSERS = [Browser.CHROME, Browser.FIREFOX]
- TIMEOUT_BROWSER: time out before test fails waiting for browser.
- Tests will have available a variable
e2ewith:by: Selenium By instance for locating an element on the page.browser: Selenium WebDriver instance for testuntil: Gets conditions for use with WebDriver wait.
- Report can be look at
/build/report.html.- This can be change with
--e2e_report_dirine2e.gradle.
- This can be change with
- Configuration is in
[1] If only one of these is required or present, then configuration could be changed in order to use only what is required in
e2e.jsfile andpackage.jsonfile.
