@padcom/cypress-pop
v0.0.3
Published
Cypress PageObjects Pattern
Downloads
4
Readme
Page Object Pattern for Cypress
This package implements the basics of the PageObject Pattern for use with Cypress.
For a long and boring explanation read those two ancient articles:
Yes, those are about writing tests with Selenium and yes they talk about Java implementation but the concepts are exactly the same and the 3 base concepts (Component
, Page
and Scenario
) are exactly the same.
You could also scaffold an project for use with this library by running the following command:
npm create from-github padcom/cypress example
In there you will find a test that exercises the https://www.duckduckgo.com site. It does so by defining a page, a few components and one search scenario. It's the best place to get started.
For convenience there is also a library template if you want to create reusable packages that can be used in many different projects:
npm create from-github padcom/cypress-lib example-lib