@vue/cli-plugin-e2e-webdriverio
@vue/cli-plugin-e2e-webdriverio
e2e-webdriverio plugin for vue-cli
Injected Commands
-
vue-cli-service test:e2eRun end-to-end tests with WebdriverIO.
Options:
--remote Run tests remotely on SauceLabs All WebdriverIO CLI options are also supported.Additionally, all WebdriverIO CLI options are also supported. E.g.:
--baseUrl,--bailetc.
Project Structure
The following structure will be generated when installing this plugin:
tests/e2e/
├── pageobjects/
| └── app.page.js
├── specs/
| ├── app.spec.js
└── .eslintrc.js
In addition to that there will be 3 configuration files generated:
wdio.shared.conf.js: a shared configuration with all options defined for all environmentswdio.local.conf.js: a local configuration for local testingwdio.sauce.conf.js: a remote configuration for testing on a cloud provider like Sauce Labs
The directories contain:
pageobjects
Contains an example for an page object. Read more on using PageObjects with WebdriverIO.
specs
Your e2e tests.
Installing in an Already Created Project
vue add e2e-webdriverio
For users with older CLI versions you may need to run vue add @vue/e2e-webdriverio.
Running Tests
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.
$ vue-cli-service test:e2e
Running a single test
To run a single test supply the filename path. E.g.:
$ vue-cli-service test:e2e --spec tests/e2e/specs/test.js
Skip Dev server auto-start
If the development server is already running and you want to skip starting it automatically, pass the --url argument:
$ vue-cli-service test:e2e --baseUrl=http://localhost:8080/
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 5.0.9 | MIT | |
| 5.0.8 | MIT | |
| 5.0.7 | MIT | |
| 5.0.6 | MIT | |
| 5.0.5 | MIT | |
| 5.0.4 | MIT | |
| 5.0.3 | MIT | |
| 5.0.2 | MIT | |
| 5.0.1 | MIT | |
| 5.0.0 | MIT | |
| 4.5.19 | MIT | |
| 4.5.18 | MIT | |
| 4.5.17 | MIT | |
| 4.5.16 | MIT | |
| 4.5.15 | MIT | |
| 4.5.14 | MIT | |
| 4.5.13 | MIT | |
| 4.5.12 | MIT | |
| 4.5.11 | MIT | |
| 4.5.10 | MIT | |
| 4.5.9 | MIT | |
| 4.5.8 | MIT | |
| 4.5.7 | MIT | |
| 4.5.6 | MIT | |
| 4.5.5 | MIT | |
| 4.5.4 | MIT | |
| 4.5.3 | MIT | |
| 4.5.2 | MIT | |
| 4.5.1 | MIT |
Pre-releases (21)
| Version | Released | License |
|---|---|---|
| 5.0.0-rc.3 | MIT | |
| 5.0.0-rc.2 | MIT | |
| 5.0.0-rc.1 | MIT | |
| 5.0.0-rc.0 | MIT | |
| 5.0.0-beta.7 | MIT | |
| 5.0.0-beta.6 | MIT | |
| 5.0.0-beta.5 | MIT | |
| 5.0.0-beta.4 | MIT | |
| 5.0.0-beta.3 | MIT | |
| 5.0.0-beta.2 | MIT | |
| 5.0.0-beta.1 | MIT | |
| 5.0.0-beta.0 | MIT | |
| 5.0.0-alpha.8 | MIT | |
| 5.0.0-alpha.7 | MIT | |
| 5.0.0-alpha.6 | MIT | |
| 5.0.0-alpha.5 | MIT | |
| 5.0.0-alpha.4 | MIT | |
| 5.0.0-alpha.3 | MIT | |
| 5.0.0-alpha.2 | MIT | |
| 5.0.0-alpha.1 | MIT | |
| 5.0.0-alpha.0 | MIT |