Skip to content

Commit

Permalink
fix: fix actionability on retry to make sure Cypress and communicate …
Browse files Browse the repository at this point in the history
…with AUT [run ci]
  • Loading branch information
AtofStryker committed Jan 10, 2025
1 parent 0e8a766 commit a911d94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions packages/driver/src/cy/retries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
6 changes: 3 additions & 3 deletions packages/graphql/schemas/cloud.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ type CloudProjectNotFound {
}

union CloudProjectResult =
CloudProject
| CloudProject
| CloudProjectNotFound
| CloudProjectUnauthorized

Expand Down Expand Up @@ -456,7 +456,7 @@ type CloudProjectSpec implements Node {
}

union CloudProjectSpecFlakyResult =
CloudFeatureNotEnabled
| CloudFeatureNotEnabled
| CloudProjectSpecFlakyStatus

type CloudProjectSpecFlakyStatus {
Expand Down Expand Up @@ -500,7 +500,7 @@ type CloudProjectSpecNotFound {
}

union CloudProjectSpecResult =
CloudProjectSpec
| CloudProjectSpec
| CloudProjectSpecNotFound
| CloudProjectUnauthorized

Expand Down

0 comments on commit a911d94

Please sign in to comment.