Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/josdem/webdriverio-workshop
This project shows some cool features in WebdriverIO along with Mocha and NodeJS
https://github.com/josdem/webdriverio-workshop
javascript mocha nodejs prettier webdriverio
Last synced: about 2 hours ago
JSON representation
This project shows some cool features in WebdriverIO along with Mocha and NodeJS
- Host: GitHub
- URL: https://github.com/josdem/webdriverio-workshop
- Owner: josdem
- Created: 2021-12-17T18:19:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-14T14:24:41.000Z (6 months ago)
- Last Synced: 2024-05-15T00:46:39.878Z (6 months ago)
- Topics: javascript, mocha, nodejs, prettier, webdriverio
- Language: JavaScript
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## WebdriverIO Workshop
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
This project shows cool features in [Webdriver.io](https://webdriver.io/) along with [Mocha Framework](https://mochajs.org/)
#### Requirements
- [NodeJS](https://nodejs.org/en/) version: `v20.10.1`
- [Chrome](https://www.google.com/chrome/) version: `124.0`**Note:** I recommed to use [NVM](https://github.com/nvm-sh/nvm) to manage NodeJS versions
#### To build the project
```bash
npm install
```#### To format the project
```bash
npx prettier --write .
```#### To run the project
```bash
npx wdio run test/config/${configuration}.conf.js --spec=test/specs/${testName}
```where `${configuration}` could be:
- chrome (to run tests require Chrome)
- rest (to run API consumption tests)
- image (to run image comparison test)where `${testName}` could be:
- geolocation.spec.js
- lighthouse.spec.js
- service.spec.js
- intercept.spec.js
- image.comparison.spec.jsIf you want to generate [Allure Reports](https://webdriver.io/docs/allure-reporter/)
- Install allure command line: `npm install -g allure-commandline --save-dev`
- Execute this command: `allure generate --clean && allure open`#### Read this as reference
- https://josdem.io/techtalk/ux/webdriverio_getting_started/
- https://josdem.io/techtalk/ux/webdriverio_geolocation/
- https://josdem.io/techtalk/ux/webdriverio_lighthouse/