You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/4-development/10-testing.md
+39-26
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
The test framework of choice for UI5 Web Components is [WebdriverIO](https://webdriver.io/) or WDIO for short.
5
5
It has a straightforward API - [https://webdriver.io/docs/api.html](https://webdriver.io/docs/api.html), and has excellent support for Web Components.
6
6
7
-
The browser of choice for test execution is [Google Chrome](https://www.google.com/chrome/), respectively the WebDriver used is [ChromeDriver](https://chromedriver.chromium.org/).
7
+
The browser of choice for test execution is [Google Chrome](https://www.google.com/chrome/), respectively the WebDriver used is [ChromeDriver](https://chromedriver.chromium.org/).
8
8
9
9
### Prerequisites
10
10
@@ -16,24 +16,24 @@ You can install it with `npm`:
16
16
-`npm i --save-dev chromedriver`
17
17
18
18
or with `yarn`:
19
-
-`yarn add -D chromedriver`
19
+
-`yarn add -D chromedriver`
20
20
21
21
**Note:** Google Chrome and ChromeDriver need to be the same version to work together. Whenever you update Google Chrome on
22
22
your system (or it updates automatically, if allowed), you are expected to also update ChromeDriver to the respective version.
23
23
24
24
### Running the tests
25
25
26
-
#### 1. Test configuration
26
+
#### 1. Test configuration
27
27
28
28
The configuration for WDIO can be found in the `config/` directory under `wdio.conf.js`.
29
29
30
-
As explained [here](./01-package.md) in the section about the `config/` directory, you can
30
+
As explained [here](./01-package.md) in the section about the `config/` directory, you can
31
31
customize, or even completely replace the default configuration.
32
32
33
33
However, before doing so, please note the following two benefits of working with the default configuration, provided by UI5 Web Components:
34
-
- Hooks, synchronizing the execution of all relevant WDIO commands (e.g. `click`, `url`, `$`, `$$`) with the rendering of the framework to
34
+
- Hooks, synchronizing the execution of all relevant WDIO commands (e.g. `click`, `url`, `$`, `$$`) with the rendering of the framework to
35
35
ensure consistency when reading or changing the state of the components.
36
-
- Additional API methods: `setProperty`, `setAttribute`, `removeAttribute`, `hasClass`.
36
+
- Additional API methods: `setProperty`, `setAttribute`, `removeAttribute`, `hasClass`.
37
37
38
38
So our recommendation would be to modify it, if necessary, but not completely replace it.
0 commit comments