Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pinguet62/cypress-typescript-pageobject
- Owner: pinguet62
- Created: 2019-11-22T12:41:26.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-03-04T05:15:22.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T04:42:27.722Z (8 months ago)
- Topics: cypress, pageobject-pattern, testing, typescript
- Language: TypeScript
- Size: 952 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
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);
```