This project automates some main functionalities of Gmail using Gmail API.
- Create Draft - the user should be allowed to save their email if they want to come back to it later
- Send Email from Draft- the user should be allowed to come back to a drafted email and send from their drafts when they’ve gotten all the information to finish an email
- Send Email from Compose - the user should be allowed to compose and send an email with information including sender, recipient, subject, and message body
- View Email Thread - the user should be allowed to read their emails with recipient, sender, and message body information
- Trash Email - the user should be allowed to trash their spam or irrelevant emails that don’t need to be in the inbox
The test cases above were chosen because these are the main functionality of an email system considering that the meaning of email (Electronic mail) is a mode of exchanging messages among people through electronic devices. The user should be able to create drafts, view emails, compose and send an email, send from drafts and trash emails in a fully functional emailing system.
Clone repository into working directory, this repository does not include node modules - instructions on installing these modules can be found below.
Node.js and npm must be installed
- npm
npm install npm@latest -g
- Clone the repo
git clone https://github.com/angiebyun/cypress-gmail.git
- Install NPM packages
npm install
To run the Cypress tests in UI, navigate to working directory in command then open Cypress using command below. Select Electron browser to run files.
- Open Cypress
npx cypress open
To run the Cypress tests in headless, navigate to working directory in command then open Cypress using command below.
- Open Cypress
npx cypress run
Distributed under the MIT License. See LICENSE.txt
for more information.
Project Link: https://github.com/angiebyun/cypress-gmail