Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: delayMs -> delay #3526

Merged
merged 1 commit into from
Feb 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions source/api/commands/intercept.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ Here are the available properties on `StaticResponse`:
/**
* Milliseconds to delay before the response is sent.
*/
delayMs?: number
delay?: number
/**
* Kilobits per second to send 'body'.
*/
Expand Down Expand Up @@ -623,9 +623,9 @@ The available functions on `res` are:
*/
send(): void
/**
* Wait for 'delayMs' milliseconds before sending the response to the client.
* Wait for 'delay' milliseconds before sending the response to the client.
*/
delay: (delayMs: number) => IncomingHttpResponse
delay: (delay: number) => IncomingHttpResponse
/**
* Serve the response at 'throttleKbps' kilobytes per second.
*/
Expand All @@ -634,6 +634,7 @@ The available functions on `res` are:
```

{% history %}
{% url "6.4.0" changelog#6-4-0 %} | Renamed `delayMs` property to `delay` (backwards-compatible).
{% url "6.2.0" changelog#6-2-0 %} | Added `matchUrlAgainstPath` option to `RouteMatcher`.
{% url "6.0.0" changelog#6-0-0 %} | Renamed `cy.route2()` to `cy.intercept()`.
{% url "6.0.0" changelog#6-0-0 %} | Removed `experimentalNetworkStubbing` option and made it the default behavior.
Expand Down