Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pinguet62/cypress-typescript-pageobject

Template for Cypress + TypeScript + Page-Object pattern
https://github.com/pinguet62/cypress-typescript-pageobject

cypress pageobject-pattern testing typescript

Last synced: about 2 months ago
JSON representation

Template for Cypress + TypeScript + Page-Object pattern

Awesome Lists containing this project

README

        

# Cypress/TypeScript/PageObject template for *e2e testing*

[![GitHub Actions](https://github.com/pinguet62/cypress-typescript-pageobject/workflows/CI/badge.svg?branch=main)](https://github.com/pinguet62/cypress-typescript-pageobject/actions?query=workflow%3ACI+branch%3Amain)

:memo: [Docoumentation](./doc)

Sample:
```typescript
openApp()
.withLoginLink(link => expect(link.text().trim()).to.equal("Sign in"))
.fillSearch("Pinguet62{enter}")
.clickOnMenuUsers()
.withUsers(users => expect(users.length).to.be.at.least(1))
.clickOnUser(0)
.clickOnRepositoriesTab()
.fillSearch("cypress-typescript-pageobject")
.withRepositories(repositories => expect(repositories.length).to.equal(1))
.clickOnRepository(0);
```