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
--url run the tests against given url instead of auto-starting dev server
15
-
--headless use chrome or firefox in headless mode
16
-
--remote run e2e tests on a cloud provider
14
+
--remote Run tests remotely on SauceLabs
15
+
16
+
All WebdriverIO CLI options are also supported.
17
+
17
18
```
18
19
19
20
Additionally, all [WebdriverIO CLI options](https://webdriver.io/docs/clioptions.html) are also supported.
20
-
E.g.: `--spec`, `--watch` etc.
21
+
E.g.: `--baseUrl`, `--bail` etc.
21
22
22
23
23
24
## Project Structure
24
25
25
-
The following structure will be generated when installing this plugin. It includes a spec file a page object definition for the Vue.js app as example.
26
+
The following structure will be generated when installing this plugin:
26
27
27
28
```
28
29
tests/e2e/
@@ -33,32 +34,48 @@ tests/e2e/
33
34
βββ .eslintrc.js
34
35
```
35
36
37
+
In addition to that there will be 3 configuration files generated:
38
+
39
+
-`wdio.shared.conf.js`: a shared configuration with all options defined for all environments
40
+
-`wdio.local.conf.js`: a local configuration for local testing
41
+
-`wdio.sauce.conf.js`: a remote configuration for testing on a cloud provider like [Sauce Labs](https://saucelabs.com/)
42
+
43
+
The directories contain:
44
+
36
45
#### `pageobjects`
37
-
Working with page objects is a popular methodology in end-to-end UI testing. See [working with page objects](https://webdriver.io/docs/pageobjects.html)section for details.
46
+
Contains an example for an page object. Read more on using [PageObjects](https://webdriver.io/docs/pageobjects.html)with WebdriverIO.
38
47
39
48
#### `specs`
40
-
The main location where tests are located. You can specify specific tests or define suites to run various subsets of these tests. [More info](https://webdriver.io/docs/organizingsuites.html).
49
+
Your e2e tests.
41
50
42
51
## Installing in an Already Created Project
43
52
44
53
```sh
45
54
vue add e2e-webdriverio
46
55
```
47
56
57
+
For users with older CLI versions you may need to run `vue add @vue/e2e-webdriverio`.
58
+
48
59
## Running Tests
49
60
50
-
By default, all tests inside the `specs` folder will be run using Chrome. If you'd like to run end-to-end tests against Chrome (or Firefox) in headless mode, simply pass the `--headless` argument.
61
+
By default, all tests inside the `specs` folder will be run using Chrome. If you'd like to run end-to-end tests against Chrome (or Firefox) in headless mode, simply pass the `--headless` argument. Tests will be automatically run in parallel when executed in the cloud.
51
62
52
63
```sh
53
64
$ vue-cli-service test:e2e
54
65
```
55
66
56
-
This will run the tests automatically in parallel on Firefox and Chrome.
57
-
58
67
**Running a single test**
59
68
60
69
To run a single test supply the filename path. E.g.:
0 commit comments