Closed tomaszwylezek closed 1 year ago
Installation: Cypress can be installed using npm (Node Package Manager). You can install it locally in your project or globally on your machine.
npm install cypress --save-dev
Writing Tests: Tests in Cypress are written in JavaScript and are organized in a structure similar to Mocha. You write tests in the cypress/integration folder. It uses a declarative syntax that reads like natural language. You use commands like cy.visit(), cy.get(), and others to interact with elements and perform actions.
Assertions: Cypress provides a wide range of built-in assertions for common scenarios. Additionally, you can use Chai assertions for more complex scenarios.
Commands: Cypress commands form the core of your test scripts. These commands represent actions that you want to perform in your test, such as clicking a button, typing into a text field, or verifying the contents of an element.
Plugins: Cypress has a plugin system that allows you to extend its functionality. You can use plugins to add custom commands, modify behavior, or integrate with other tools.
Execution: You can run Cypress tests in headless mode for automated builds or in interactive mode for debugging. Cypress also provides a dashboard service for running tests in a distributed environment.
Community and Documentation: Cypress has an active community, and there is comprehensive documentation available on the official website. The documentation includes guides, examples, and API reference.
Description
The ticket is about familiarizing with the chosen E2E framework based on investigation in #78 #77
Acceptance criteria