diff --git a/e2e/test/scenarios/native/reproductions/11727-cancel-native-query-shortcut.cy.spec.js b/e2e/test/scenarios/native/reproductions/11727-cancel-native-query-shortcut.cy.spec.ts
similarity index 100%
rename from e2e/test/scenarios/native/reproductions/11727-cancel-native-query-shortcut.cy.spec.js
rename to e2e/test/scenarios/native/reproductions/11727-cancel-native-query-shortcut.cy.spec.ts
diff --git a/e2e/tsconfig.json b/e2e/tsconfig.json
index ce9332acd3e0ae4644bcf20310c7547875b14f49..5e1dfe4eb9ca615897bd570baee9e94bd62337e5 100644
--- a/e2e/tsconfig.json
+++ b/e2e/tsconfig.json
@@ -3,7 +3,12 @@
   "compilerOptions": {
     "outDir": "build",
     "baseUrl": "./",
-    "types": ["cypress", "@testing-library/cypress", "cypress-real-events"],
+    "types": [
+      "cypress",
+      "@testing-library/cypress",
+      "cypress-real-events",
+      "@cypress/grep"
+    ],
     "paths": {
       "*": ["../frontend/src/*"],
       "e2e/*": ["./*"]
diff --git a/package.json b/package.json
index 4e121a18e260ed4ade66aca301c8209771cbb243..03cd4d870390222b365db30eef644e01f91b4408 100644
--- a/package.json
+++ b/package.json
@@ -130,7 +130,7 @@
     "@babel/preset-react": "^7.23.3",
     "@babel/preset-typescript": "^7.23.3",
     "@bahmutov/cypress-esbuild-preprocessor": "^2.2.0",
-    "@cypress/grep": "^3.1.0",
+    "@cypress/grep": "^4.0.1",
     "@cypress/skip-test": "^2.6.1",
     "@emotion/babel-plugin": "^11.11.0",
     "@esbuild-plugins/node-modules-polyfill": "^0.2.2",
diff --git a/yarn.lock b/yarn.lock
index ade237b1379de562ca0f717da70df8481671ce20..16393287862904e61af89e1150eb65b21d7e114d 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1296,12 +1296,12 @@
   resolved "https://registry.yarnpkg.com/@csstools/convert-colors/-/convert-colors-1.4.0.tgz#ad495dc41b12e75d588c6db8b9834f08fa131eb7"
   integrity sha512-5a6wqoJV/xEdbRNKVo6I4hO3VjyDq//8q2f9I6PBAvMesJHFauXDorcNCsr9RzvsZnaWi5NYCcfyqP1QeFHFbw==
 
-"@cypress/grep@^3.1.0":
-  version "3.1.0"
-  resolved "https://registry.yarnpkg.com/@cypress/grep/-/grep-3.1.0.tgz#d055fd63a9dd59326020af90e2fe56610ea89ec6"
-  integrity sha512-ZSAwUyEw7e7Lu4KhjQLZrJDnzA04awqikj7ZcPHr+oW4wDpiVscn7VEZ/P/WRC1fBydUoZ5e24aFEPxXmKCreg==
+"@cypress/grep@^4.0.1":
+  version "4.0.1"
+  resolved "https://registry.yarnpkg.com/@cypress/grep/-/grep-4.0.1.tgz#bce679f85da286c4979bb9ffc79b2782dc5b75c6"
+  integrity sha512-i3mWy4mG6nxF7m93W0nzsMZkl0PflGa4+SygA9P92tELayYYAaRKlr07I4fo5PnwoPk1H9IEbXoMFJkhfTMxtg==
   dependencies:
-    debug "^4.3.2"
+    debug "^4.3.4"
     find-test-names "^1.19.0"
     globby "^11.0.4"
 
@@ -9225,7 +9225,7 @@ debounce@^1.2.1:
   resolved "https://registry.yarnpkg.com/debounce/-/debounce-1.2.1.tgz#38881d8f4166a5c5848020c11827b834bcb3e0a5"
   integrity sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==
 
-debug@2.6.9, debug@3.2.7, debug@4, debug@4.3.4, debug@^2.2.0, debug@^2.3.3, debug@^2.6.0, debug@^2.6.8, debug@^3.0.0, debug@^3.1.0, debug@^3.2.6, debug@^3.2.7, debug@^4.0.0, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4:
+debug@2.6.9, debug@3.2.7, debug@4, debug@4.3.4, debug@^2.2.0, debug@^2.3.3, debug@^2.6.0, debug@^2.6.8, debug@^3.0.0, debug@^3.1.0, debug@^3.2.6, debug@^3.2.7, debug@^4.0.0, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.3, debug@^4.3.4:
   version "4.3.4"
   resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865"
   integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==