We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99a3fb8 commit 068c59aCopy full SHA for 068c59a
cypress/support/commands/api_commands.js
@@ -73,7 +73,8 @@ const setRequestIntercepted = (value) =>
73
* This flag indicates whether a request matching an intercept pattern was detected.
74
* @returns {boolean} The current value of the request interception flag
75
*/
76
-const getRequestIntercepted = () => Cypress.env('wasRequestIntercepted');
+const getRequestIntercepted = () =>
77
+ Cypress.env('wasRequestIntercepted') || false;
78
79
/**
80
* Custom command to intercept API calls and wait for them to complete.
0 commit comments