From eb900fc15c410761e80c3f9f0a1478c34f21b274 Mon Sep 17 00:00:00 2001 From: Junyoung Yang Date: Wed, 24 Apr 2024 22:55:07 +0900 Subject: [PATCH] docs: update user guide --- README.md | 2 +- docs/rules/no-pause.md | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index ba92e3bc..56596748 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ Rules with a check mark (✅) are enabled by default while using the `plugin:cyp | | [no-force](./docs/rules/no-force.md) | Disallow using `force: true` with action commands | | | [assertion-before-screenshot](./docs/rules/assertion-before-screenshot.md) | Ensure screenshots are preceded by an assertion | | | [require-data-selectors](./docs/rules/require-data-selectors.md) | Only allow data-\* attribute selectors (require-data-selectors) | -| | [no-pause](./docs/rules/no-pause.md) | Disallow `cy.pause()` parent command | +| | [no-pause](./docs/rules/no-pause.md) | Disallow using `cy.pause()` | ## Mocha and Chai diff --git a/docs/rules/no-pause.md b/docs/rules/no-pause.md index 757c332c..d7919092 100644 --- a/docs/rules/no-pause.md +++ b/docs/rules/no-pause.md @@ -6,11 +6,5 @@ Invalid: ```js cy.pause(); -``` - -Valid: - -```js -// only the parent cy.pause command is detected -cy.get('selector').pause(); +cy.get("selector").pause(); ```