This is a sample project to demonstrate the differences between writing end-to-end tests using the Page Objects pattern, using Cypress custom commands, or none of them at all.
The application under test is Mattermost Preview Mode, and it can be found on Docker Hub.
Here you will find instructions for installing the dev dependencies, besides the installation of the application under test (dev environment).
Run npm install
to install the dev dependencies.
You will need Node.js and NPM installed for it.
For installation instructions of Mattermost, read their official documentation.
Here you will find instructions for running the tests in both headless and interactive modes.
With the Mattermost application up-and-running, run npm test
to run the tests in headless mode.
With the Mattermost application up-and-running, run npm run cy:open
to open the Cypress Runner, then click the > Run 1 integration spec button to run the tests in interactive mode.
Here you will find the implementation of: