From b59bc48f2cc5fc89e72a4f1c5d340441c0048bc3 Mon Sep 17 00:00:00 2001 From: Zach Bloomquist Date: Wed, 3 Mar 2021 14:27:38 -0500 Subject: [PATCH] docs: revert "delayMs -> delay" (#3629) This reverts commit b22fa4c44656109565e7f208b90baef89f6f8259. --- source/api/commands/intercept.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/api/commands/intercept.md b/source/api/commands/intercept.md index a527b7c608..e8f3807d85 100644 --- a/source/api/commands/intercept.md +++ b/source/api/commands/intercept.md @@ -427,7 +427,7 @@ Here are the available properties on `StaticResponse`: /** * Milliseconds to delay before the response is sent. */ - delay?: number + delayMs?: number /** * Kilobits per second to send 'body'. */ @@ -646,9 +646,9 @@ The available functions on `res` are: */ send(): void /** - * Wait for 'delay' milliseconds before sending the response to the client. + * Wait for 'delayMs' milliseconds before sending the response to the client. */ - delay: (delay: number) => IncomingHttpResponse + delay: (delayMs: number) => IncomingHttpResponse /** * Serve the response at 'throttleKbps' kilobytes per second. */ @@ -657,6 +657,7 @@ The available functions on `res` are: ``` {% history %} +{% url "7.0.0" changelog#7-0-0 %} | Renamed `delay` property to `delayMs`. {% url "7.0.0" changelog#7-0-0 %} | Removed `cy.route2()` alias for `cy.intercept()`. {% 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`.