coryhouse / coryhouse/reactjsconsulting

Cypress

Open
#146 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
374
Forks
33
PR merge metrics
No merged PRs in 30d

Description

## Custom Commands

```ts
Cypress.Commands.add("findSectionByHeading", (heading) => {
return cy.findByRole("heading", { name: heading }).closest("section");
});

// This type is necessary for TypeScript
declare global {
namespace Cypress {
interface Chainable {
findSectionByHeading(heading: string): Chainable;
}
}
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.