From a911d947742aefebc726556d97c2c387b58cd42d Mon Sep 17 00:00:00 2001 From: AtofStryker Date: Fri, 10 Jan 2025 12:56:57 -0500 Subject: [PATCH] fix: fix actionability on retry to make sure Cypress and communicate with AUT [run ci] --- packages/driver/src/cy/retries.ts | 4 ++++ packages/graphql/schemas/cloud.graphql | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/driver/src/cy/retries.ts b/packages/driver/src/cy/retries.ts index 7ad67b052828..79be164a9d9d 100644 --- a/packages/driver/src/cy/retries.ts +++ b/packages/driver/src/cy/retries.ts @@ -32,6 +32,10 @@ export const create = (Cypress: ICypress, state: StateFunc, timeout: $Cy['timeou // want to accidentally time out via mocha let runnableTimeout + // if we are to retry any commands we need to be able to communicate with the origin + // @ts-expect-error + Cypress.ensure.commandCanCommunicateWithAUT(cy) + if (!options._runnableTimeout) { runnableTimeout = options.timeout ?? timeout() clearTimeout() diff --git a/packages/graphql/schemas/cloud.graphql b/packages/graphql/schemas/cloud.graphql index c8297ec9b5e2..4edac353bd6a 100644 --- a/packages/graphql/schemas/cloud.graphql +++ b/packages/graphql/schemas/cloud.graphql @@ -333,7 +333,7 @@ type CloudProjectNotFound { } union CloudProjectResult = - CloudProject + | CloudProject | CloudProjectNotFound | CloudProjectUnauthorized @@ -456,7 +456,7 @@ type CloudProjectSpec implements Node { } union CloudProjectSpecFlakyResult = - CloudFeatureNotEnabled + | CloudFeatureNotEnabled | CloudProjectSpecFlakyStatus type CloudProjectSpecFlakyStatus { @@ -500,7 +500,7 @@ type CloudProjectSpecNotFound { } union CloudProjectSpecResult = - CloudProjectSpec + | CloudProjectSpec | CloudProjectSpecNotFound | CloudProjectUnauthorized