https://github.com/gendelbendel/wdio-mailinator-example
An example of using WDIO to interact with Mailinator
https://github.com/gendelbendel/wdio-mailinator-example
Last synced: 3 months ago
JSON representation
An example of using WDIO to interact with Mailinator
- Host: GitHub
- URL: https://github.com/gendelbendel/wdio-mailinator-example
- Owner: gendelbendel
- License: mit
- Created: 2023-07-28T02:35:11.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-30T03:16:57.000Z (over 1 year ago)
- Last Synced: 2025-01-11T06:21:29.382Z (4 months ago)
- Language: JavaScript
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wdio-mailinator-example
WIP
The goal of this project is to show how simple it is to interact with the Mailinator API in a WDIO project.
This project was created via:
1. Creating the wdio base project
```
npm create wdio@latest ./
```2. Install mailinator client and dotenv
```
npm i mailinator-client dotenv
```3. Modify `baseUrl` and setup dotenv in `onPrepare` in file `wdio.conf.js` (see blog post)
4. Modify page objects to interact with forgot password page (see blog post)
5. Add Mailinator functions to check email (see blog post)
6. Modify test spec (see blog post)## Configuration
You need to create a `.env` file with these values set:
```
MAILINATOR_API_KEY=
```- `MAILINATOR_API_KEY`: Your API key in your mailinator account
## Install
```
npm i
```## Running
```
npm test
```