@padcom/cypress-pop
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @padcom/cypress-pop

Weekly Downloads

2

Version

0.0.3

License

Apache-2.0

Unpacked Size

7.05 kB

Total Files

5

Last publish

Collaborators

  • padcom