Skip to content

Commit ffe32d5

Browse files
authored
Merge branch 'main' into docs-api-commands-fixture-global-this
2 parents ab5496b + ecc6db9 commit ffe32d5

File tree

422 files changed

+9140
-7429
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

422 files changed

+9140
-7429
lines changed

.circleci/config.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
version: 2.1
22

3-
orbs:
4-
cypress: cypress-io/[email protected]
5-
63
executors:
74
node-executor:
5+
resource_class: medium+
86
docker:
9-
- image: cimg/node:16.15.1
7+
- image: cimg/node:18.15.0
108
with-chrome-and-firefox:
119
resource_class: medium+
1210
docker:
13-
- image: 'cypress/browsers:node16.13.2-chrome97-ff96'
11+
- image: 'cypress/browsers:node18.12.0-chrome106-ff106'
1412

1513
commands:
1614
docs-build:
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: 'Add issue/PR to Triage Board'
2+
on:
3+
issues:
4+
types:
5+
- opened
6+
pull_request_target:
7+
types:
8+
- opened
9+
jobs:
10+
add-to-triage-project-board:
11+
uses: cypress-io/cypress/.github/workflows/triage_add_to_project.yml@develop
12+
secrets: inherit
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: 'Handle Comment Workflow'
2+
on:
3+
issue_comment:
4+
types:
5+
- created
6+
jobs:
7+
closed-issue-comment:
8+
uses: cypress-io/cypress/.github/workflows/triage_handle_new_comments.yml@develop
9+
secrets: inherit

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
18.17.1

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"semi": false,
33
"singleQuote": true,
44
"printWidth": 80,
5-
"proseWrap": "always"
5+
"proseWrap": "preserve"
66
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Cypress Documentation [![Cypress Cloud](https://img.shields.io/badge/cypress-dashboard-brightgreen.svg)](https://cloud.cypress.io/#/projects/ma3dkn/runs) [![first-timers-only](http://img.shields.io/badge/first--timers--only-friendly-blue.svg)](https://github.com/cypress-io/cypress-documentation/labels/first-timers-only)
1+
# Cypress Documentation [![Discord chat](https://img.shields.io/badge/chat-on%20Discord-brightgreen)](https://on.cypress.io/discord) [![first-timers-only](http://img.shields.io/badge/first--timers--only-friendly-blue.svg)](https://github.com/cypress-io/cypress-documentation/labels/first-timers-only)
22

33
The code for Cypress Documentation including Guides, API, Examples, Cypress
44
Cloud & FAQ found at https://docs.cypress.io.

docs/api/actions/actionability-guide.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Actionability Guide
33
sidebar_position: 10
4+
sidebar_class_name: sidebar-guide-ref
45
---
56

67
import { Redirect } from '@docusaurus/router'

docs/api/actions/check.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Pass in an options object to change the default behavior of `.check()`.
6464
| `timeout` | [`defaultCommandTimeout`](/guides/references/configuration#Timeouts) | Time to wait for `.check()` to resolve before [timing out](#Timeouts) |
6565
| `waitForAnimations` | [`waitForAnimations`](/guides/references/configuration#Actionability) | Whether to wait for elements to [finish animating](/guides/core-concepts/interacting-with-elements#Animations) before executing the command. |
6666

67-
### Yields [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Subject-Management)
67+
### Yields [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Subject-Management) {#Yields}
6868

6969
- `.check()` yields the same subject it was given.
7070
- It is [unsafe](/guides/core-concepts/retry-ability#Only-queries-are-retried)
@@ -168,19 +168,19 @@ cy.get('#pick-fruit :checked').should('be.checked').and('have.value', 'apple')
168168

169169
## Rules
170170

171-
### Requirements [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Chains-of-Commands)
171+
### Requirements [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Chains-of-Commands) {#Requirements}
172172

173173
- `.check()` requires being chained off a command that yields DOM element(s).
174174
- `.check()` requires the element to have type `checkbox` or `radio`.
175175

176-
### Assertions [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Assertions)
176+
### Assertions [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Assertions) {#Assertions}
177177

178178
- `.check()` will automatically wait for the element to reach an
179179
[actionable state](/guides/core-concepts/interacting-with-elements).
180180
- `.check()` will automatically [retry](/guides/core-concepts/retry-ability)
181181
until all chained assertions have passed.
182182

183-
### Timeouts [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Timeouts)
183+
### Timeouts [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Timeouts) {#Timeouts}
184184

185185
- `.check()` can time out waiting for the element to reach an
186186
[actionable state](/guides/core-concepts/interacting-with-elements).

docs/api/actions/clear.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Pass in an options object to change the default behavior of `.clear()`.
5454
| `timeout` | [`defaultCommandTimeout`](/guides/references/configuration#Timeouts) | Time to wait for `.clear()` to resolve before [timing out](#Timeouts) |
5555
| `waitForAnimations` | [`waitForAnimations`](/guides/references/configuration#Actionability) | Whether to wait for elements to [finish animating](/guides/core-concepts/interacting-with-elements#Animations) before executing the command. |
5656

57-
### Yields [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Subject-Management)
57+
### Yields [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Subject-Management) {#Yields}
5858

5959
- `.clear()` yields the same subject it was given.
6060
- It is [unsafe](/guides/core-concepts/retry-ability#Only-queries-are-retried)
@@ -88,19 +88,19 @@ Please read the [`.type()`](/api/commands/type) documentation for more details.
8888

8989
## Rules
9090

91-
### Requirements [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Chains-of-Commands)
91+
### Requirements [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Chains-of-Commands) {#Requirements}
9292

9393
- `.clear()` requires being chained off a command that yields DOM element(s).
9494
- `.clear()` requires the element to be an `input` or `textarea`.
9595

96-
### Assertions [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Assertions)
96+
### Assertions [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Assertions) {#Assertions}
9797

9898
- `.clear()` will automatically wait for the element to reach an
9999
[actionable state](/guides/core-concepts/interacting-with-elements)
100100
- `.clear()` will automatically [retry](/guides/core-concepts/retry-ability)
101101
until all chained assertions have passed
102102

103-
### Timeouts [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Timeouts)
103+
### Timeouts [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Timeouts) {#Timeouts}
104104

105105
- `.clear()` can time out waiting for the element to reach an
106106
[actionable state](/guides/core-concepts/interacting-with-elements).

docs/api/actions/click.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Pass in an options object to change the default behavior of `.click()`.
7575
| `timeout` | [`defaultCommandTimeout`](/guides/references/configuration#Timeouts) | Time to wait for `.click()` to resolve before [timing out](#Timeouts) |
7676
| `waitForAnimations` | [`waitForAnimations`](/guides/references/configuration#Actionability) | Whether to wait for elements to [finish animating](/guides/core-concepts/interacting-with-elements#Animations) before executing the command. |
7777

78-
### Yields [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Subject-Management)
78+
### Yields [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Subject-Management) {#Yields}
7979

8080
- `.click()` yields the same subject it was given.
8181
- It is [unsafe](/guides/core-concepts/retry-ability#Only-queries-are-retried)
@@ -209,18 +209,18 @@ then the element will not receive focus as per the spec.
209209

210210
## Rules
211211

212-
### Requirements [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Chains-of-Commands)
212+
### Requirements [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Chains-of-Commands) {#Requirements}
213213

214214
- `.click()` requires being chained off a command that yields DOM element(s).
215215

216-
### Assertions [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Assertions)
216+
### Assertions [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Assertions) {#Assertions}
217217

218218
- `.click()` will automatically wait for the element to reach an
219219
[actionable state](/guides/core-concepts/interacting-with-elements).
220220
- `.click()`will automatically [retry](/guides/core-concepts/retry-ability)
221221
until all chained assertions have passed.
222222

223-
### Timeouts [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Timeouts)
223+
### Timeouts [<Icon name="question-circle"/>](/guides/core-concepts/introduction-to-cypress#Timeouts) {#Timeouts}
224224

225225
- `.click()` can time out waiting for the element to reach an
226226
[actionable state](/guides/core-concepts/interacting-with-elements).

0 commit comments

Comments
 (0)