Skip to content

Commit

Permalink
lint and broken link fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cacieprins committed Oct 28, 2024
1 parent 4d7e8e6 commit bc4a1e7
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 76 deletions.
28 changes: 14 additions & 14 deletions docs/api/commands/intercept.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -130,21 +130,21 @@ glob-matched against the request using
[`Cypress.minimatch`](/api/utilities/minimatch) with the `{ matchBase: true }`
minimatch option applied.

| Option | Description |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| auth | HTTP Basic Authentication (`object` with keys `username` and `password`) |
| headers | HTTP request headers (`object`) |
| hostname | HTTP request hostname |
| https | `true`: only secure (https://) requests, `false`: only insecure (http://) requests |
| method | HTTP request method (matches any method by default) |
| middleware | `true`: match route first and in defined order, `false`: match route in reverse order (default) |
| path | HTTP request path after the hostname, including query parameters |
| pathname | Like `path`, but without query parameters |
| port | HTTP request port(s) (`number` or `Array`) |
| query | Parsed query string (`object`) |
| Option | Description |
| ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| auth | HTTP Basic Authentication (`object` with keys `username` and `password`) |
| headers | HTTP request headers (`object`) |
| hostname | HTTP request hostname |
| https | `true`: only secure (https://) requests, `false`: only insecure (http://) requests |
| method | HTTP request method (matches any method by default) |
| middleware | `true`: match route first and in defined order, `false`: match route in reverse order (default) |
| path | HTTP request path after the hostname, including query parameters |
| pathname | Like `path`, but without query parameters |
| port | HTTP request port(s) (`number` or `Array`) |
| query | Parsed query string (`object`) |
| resourceType <Badge type="caution">deprecated</Badge> | The resource type of the request. See ["Request object properties"](#Request-object-properties) for a list of possible values for `resourceType`. |
| times | Maximum number of times to match (`number`) |
| url | Full HTTP request URL |
| times | Maximum number of times to match (`number`) |
| url | Full HTTP request URL |

See [examples](#With-RouteMatcher) below.

Expand Down
4 changes: 2 additions & 2 deletions docs/api/commands/origin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ doc.

:::info

<strong>Changes in Cypress [v14.0.0](TBD)</strong>
<strong>Changes in Cypress [v14.0.0](/app/references/changelog#14-0-0)</strong>

Cypress no longer injects `document.domain` by default, which means `cy.origin()`
must now be used to navigate between any two origins in the same test, even if
Expand Down Expand Up @@ -556,7 +556,7 @@ inclusion in a future version of Cypress.

| Version | Changes |
| ------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| [14.0.0](app/references/changelog#14-0-0) | `cy.origin()` is now required when navigating between origins in the same test, rather than superdomains.|
| [14.0.0](/app/references/changelog#14-0-0) | `cy.origin()` is now required when navigating between origins in the same test, rather than superdomains. |
| [12.6.0](/app/references/changelog#10-7-0) | Support for `Cypress.require()` added and support for CommonJS `require()` and ES module `import()` removed |
| [10.11.0](/app/references/changelog#10-7-0) | Support for CommonJS `require()` and ES module `import()` added and support for `Cypress.require()` removed |
| [10.7.0](/app/references/changelog#10-7-0) | Support for `Cypress.require()` added |
Expand Down
2 changes: 1 addition & 1 deletion docs/app/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ a remote page and does not resolve until all of the external resources complete
their loading phase. Because we expect your applications to observe differing
load times, this command's default timeout is set to 60000ms. If you visit an
invalid url or a
[second unique domain](/app/guides/cross-origin-testing#Different-superdomain-per-test-requires-cyorigin),
[second unique domain](/app/guides/cross-origin-testing#Different-origins-per-test-require-cyorigin),
Cypress will log a verbose yet friendly error message.

**_In CI, how do I make sure my server has started?_**
Expand Down
7 changes: 4 additions & 3 deletions docs/app/guides/cross-origin-testing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,14 @@ chart to help clarify the differences!

##### Origin

An `origin` is comprised of a URL's `scheme`, `hostname`, *and* `port`. Given the URLs
An `origin` is comprised of a URL's `scheme`, `hostname`, _and_ `port`. Given the URLs
below, all have the same origin compared to `https://www.cypress.io`:

- `https://www.cypress.io/cloud`
- `https://www.cypress.io/app`

But the following have different origins compared to `https://www.cypress.io`:

- `http://www.cypress.io` (different `scheme`)
- `https://docs.cypress.io` (different `hostname` due to the subdomain)
- `https://www.auth0.com` (different `hostname`)
Expand All @@ -139,8 +140,8 @@ But the following have different origins compared to `https://www.cypress.io`:
:::danger

<Icon name="exclamation-triangle" color="red" /> You **cannot** [visit](/api/commands/visit)
two different origins in the same test and continue to interact with
the page without the use of the [`cy.origin()`](/api/commands/origin) command.
two different origins in the same test and continue to interact with the page without
the use of the [`cy.origin()`](/api/commands/origin) command.

:::

Expand Down
13 changes: 6 additions & 7 deletions docs/app/references/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ _Released 12/3/2024 (PENDING)_
**Breaking Changes:**

- Removed support for Node.js 16 and Node.js 21. Addresses [#29930](https://github.com/cypress-io/cypress/issues/29930).
- Prebuilt binaries for Linux are no longer compatible with Linux distributions based on glibc `<2.28`,
for example: Ubuntu 14-18, RHEL 7, CentOS 7, Amazon Linux 2. Addresses [#29601](https://github.com/cypress-io/cypress/issues/29601).
- Prebuilt binaries for Linux are no longer compatible with Linux distributions based on glibc `<2.28`,
for example: Ubuntu 14-18, RHEL 7, CentOS 7, Amazon Linux 2. Addresses [#29601](https://github.com/cypress-io/cypress/issues/29601).
- To better adhere to security practices, `cy.origin()` is now required when navigating between two different origins in the same test. This behavior can be disabled via the `injectDocumentDomain` configuration option, which will be removed in Cypress 15. Addresses [#29590](https://github.com/cypress-io/cypress/issues/29590).
- The
`experimentalJustInTimeCompile`
Expand All @@ -23,7 +23,6 @@ for example: Ubuntu 14-18, RHEL 7, CentOS 7, Amazon Linux 2. Addresses [#29601](

- The CSS pseudo-class `:dir()` is now supported when testing in Electron. Addresses [#29766](https://github.com/cypress-io/cypress/issues/29766).


**Dependency Updates:**

- Upgraded `electron` from `27.3.10` to `32.2.0`. Addresses [#29547](https://github.com/cypress-io/cypress/issues/29547).
Expand Down Expand Up @@ -102,8 +101,8 @@ _Released 8/27/2024_

- Added new
[`experimentalJustInTimeCompile`](/app/references/experiments#Configuration)
configuration option for component testing. This option will only compile resources directly related to your spec, compiling
them 'just-in-time' before spec execution. This should result in improved memory management and performance for component
configuration option for component testing. This option will only compile resources directly related to your spec, compiling
them 'just-in-time' before spec execution. This should result in improved memory management and performance for component
tests in `cypress open` and `cypress run` modes, in particular for large component testing suites. [`experimentalJustInTimeCompile`](/app/references/experiments#Configuration) is currently supported for [`webpack`](https://www.npmjs.com/package/webpack) and [`vite`](https://www.npmjs.com/package/vite). Addresses [#29244](https://github.com/cypress-io/cypress/issues/29244).
- `.type({upArrow})` and `.type({downArrow})` now also works for date, month, week, time, datetime-local and range input types. Addresses [#29665](https://github.com/cypress-io/cypress/issues/29665).
- Added a `CYPRESS_SKIP_VERIFY` flag to enable suppressing Cypress verification checks. Addresses [#22243](https://github.com/cypress-io/cypress/issues/22243).
Expand Down Expand Up @@ -1420,11 +1419,11 @@ _Released 1/24/2023_
will help us make decisions to improve memory issues. Addresses
[#23391](https://github.com/cypress-io/cypress/issues/23391).
- Added new
[`experimentalSkipDomainInjection`](/app/references/experiments#Experimental-Skip-Domain-Injection)
`experimentalSkipDomainInjection`
configuration option to disable Cypress from setting `document.domain` on
injection, allowing users to test Salesforce domains. If you believe you are
having `document.domain` issues, please see the
[`experimentalSkipDomainInjection`](/app/references/experiments#Experimental-Skip-Domain-Injection)
`experimentalSkipDomainInjection`
guide. This config option is end-to-end only. Addresses
[#2367](https://github.com/cypress-io/cypress/issues/2367),
[#23958](https://github.com/cypress-io/cypress/issues/23958),
Expand Down
Loading

0 comments on commit bc4a1e7

Please sign in to comment.