Skip to content

Commit

Permalink
Merge branch 'main' into docs-api-commands-fixture-global-this
Browse files Browse the repository at this point in the history
  • Loading branch information
Mandroide committed Oct 8, 2023
2 parents ab5496b + ecc6db9 commit ffe32d5
Show file tree
Hide file tree
Showing 422 changed files with 9,140 additions and 7,429 deletions.
8 changes: 3 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
version: 2.1

orbs:
cypress: cypress-io/cypress@1.26.0

executors:
node-executor:
resource_class: medium+
docker:
- image: cimg/node:16.15.1
- image: cimg/node:18.15.0
with-chrome-and-firefox:
resource_class: medium+
docker:
- image: 'cypress/browsers:node16.13.2-chrome97-ff96'
- image: 'cypress/browsers:node18.12.0-chrome106-ff106'

commands:
docs-build:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/add_issue_to_triage_board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: 'Add issue/PR to Triage Board'
on:
issues:
types:
- opened
pull_request_target:
types:
- opened
jobs:
add-to-triage-project-board:
uses: cypress-io/cypress/.github/workflows/triage_add_to_project.yml@develop
secrets: inherit
9 changes: 9 additions & 0 deletions .github/workflows/triage_handle_issue_comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: 'Handle Comment Workflow'
on:
issue_comment:
types:
- created
jobs:
closed-issue-comment:
uses: cypress-io/cypress/.github/workflows/triage_handle_new_comments.yml@develop
secrets: inherit
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
18.17.1
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"semi": false,
"singleQuote": true,
"printWidth": 80,
"proseWrap": "always"
"proseWrap": "preserve"
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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)
# 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)

The code for Cypress Documentation including Guides, API, Examples, Cypress
Cloud & FAQ found at https://docs.cypress.io.
Expand Down
1 change: 1 addition & 0 deletions docs/api/actions/actionability-guide.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Actionability Guide
sidebar_position: 10
sidebar_class_name: sidebar-guide-ref
---

import { Redirect } from '@docusaurus/router'
Expand Down
8 changes: 4 additions & 4 deletions docs/api/actions/check.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Pass in an options object to change the default behavior of `.check()`.
| `timeout` | [`defaultCommandTimeout`](/guides/references/configuration#Timeouts) | Time to wait for `.check()` to resolve before [timing out](#Timeouts) |
| `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. |

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

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

## Rules

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

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

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

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

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

- `.check()` can time out waiting for the element to reach an
[actionable state](/guides/core-concepts/interacting-with-elements).
Expand Down
8 changes: 4 additions & 4 deletions docs/api/actions/clear.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Pass in an options object to change the default behavior of `.clear()`.
| `timeout` | [`defaultCommandTimeout`](/guides/references/configuration#Timeouts) | Time to wait for `.clear()` to resolve before [timing out](#Timeouts) |
| `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. |

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

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

## Rules

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

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

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

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

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

- `.clear()` can time out waiting for the element to reach an
[actionable state](/guides/core-concepts/interacting-with-elements).
Expand Down
8 changes: 4 additions & 4 deletions docs/api/actions/click.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Pass in an options object to change the default behavior of `.click()`.
| `timeout` | [`defaultCommandTimeout`](/guides/references/configuration#Timeouts) | Time to wait for `.click()` to resolve before [timing out](#Timeouts) |
| `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. |

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

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

## Rules

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

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

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

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

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

- `.click()` can time out waiting for the element to reach an
[actionable state](/guides/core-concepts/interacting-with-elements).
Expand Down
8 changes: 4 additions & 4 deletions docs/api/actions/dblclick.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Pass in an options object to change the default behavior of `.dblclick()`.
| `timeout` | [`defaultCommandTimeout`](/guides/references/configuration#Timeouts) | Time to wait for `.dblclick()` to resolve before [timing out](#Timeouts) |
| `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. |

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

- `.dblclick()` yields the same subject it was given.
- It is [unsafe](/guides/core-concepts/retry-ability#Only-queries-are-retried)
Expand Down Expand Up @@ -191,18 +191,18 @@ cy.get('li:first').dblclick({

## Rules

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

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

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

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

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

- `.dblclick()` can time out waiting for the element to reach an
[actionable state](/guides/core-concepts/interacting-with-elements).
Expand Down
8 changes: 4 additions & 4 deletions docs/api/actions/rightclick.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Pass in an options object to change the default behavior of `.rightclick()`.
| `timeout` | [`defaultCommandTimeout`](/guides/references/configuration#Timeouts) | Time to wait for `.rightclick()` to resolve before [timing out](#Timeouts) |
| `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. |

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

- `.rightclick()` yields the same subject it was given.
- It is [unsafe](/guides/core-concepts/retry-ability#Only-queries-are-retried)
Expand Down Expand Up @@ -198,20 +198,20 @@ cy.get('.menu-item').rightclick({

## Rules

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

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

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

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

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

- `.rightclick()` can time out waiting for the element to reach an
[actionable state](/guides/core-concepts/interacting-with-elements).
Expand Down
8 changes: 4 additions & 4 deletions docs/api/actions/scrollintoview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Pass in an options object to change the default behavior of `.scrollIntoView()`.
| `offset` | `{top: 0, left: 0}` | Amount to scroll after the element has been scrolled into view |
| `timeout` | [`defaultCommandTimeout`](/guides/references/configuration#Timeouts) | Time to wait for `.scrollIntoView()` to resolve before [timing out](#Timeouts) |

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

- `.scrollIntoView()` yields the same subject it was given.
- It is [unsafe](/guides/core-concepts/retry-ability#Only-queries-are-retried)
Expand Down Expand Up @@ -92,17 +92,17 @@ or

## Rules

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

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

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

- `.scrollIntoView()` will automatically wait for assertions you have chained to
pass

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

- `.scrollIntoView()` can time out waiting for assertions you've added to pass.

Expand Down
6 changes: 3 additions & 3 deletions docs/api/actions/scrollto.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Pass in an options object to change the default behavior of `cy.scrollTo()`.
| `log` | `true` | Displays the command in the [Command log](/guides/core-concepts/cypress-app#Command-Log) |
| `timeout` | [`defaultCommandTimeout`](/guides/references/configuration#Timeouts) | Time to wait for `.scrollTo()` to resolve before [timing out](#Timeouts) |

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

- `.scrollTo()` yields the same subject it was given.
- It is [unsafe](/guides/core-concepts/retry-ability#Only-queries-are-retried)
Expand Down Expand Up @@ -183,12 +183,12 @@ or

## Rules

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

- `.scrollTo()` requires being chained off a command that yields DOM element(s).
- `.scrollTo()` requires the element to be scrollable.

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

- `.scrollTo()` can time out waiting for assertions you've added to pass.

Expand Down
8 changes: 4 additions & 4 deletions docs/api/actions/select.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Pass in an options object to change the default behavior of `.select()`.
| `log` | `true` | Displays the command in the [Command log](/guides/core-concepts/cypress-app#Command-Log) |
| `timeout` | [`defaultCommandTimeout`](/guides/references/configuration#Timeouts) | Time to wait for `.select()` to resolve before [timing out](#Timeouts) |

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

- `.select()` yields the same subject it was given.
- It is [unsafe](/guides/core-concepts/retry-ability#Only-queries-are-retried)
Expand Down Expand Up @@ -253,19 +253,19 @@ disabled `<optgroup>`. See

## Rules

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

- `.select()` requires being chained off a command that yields DOM element(s).
- `.select()` requires the element to be a `select`.

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

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

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

- `.select()` can time out waiting for the element to reach an
[actionable state](/guides/core-concepts/interacting-with-elements).
Expand Down
Loading

0 comments on commit ffe32d5

Please sign in to comment.