Skip to content

Commit a911d94

Browse files
committed
fix: fix actionability on retry to make sure Cypress and communicate with AUT [run ci]
1 parent 0e8a766 commit a911d94

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

packages/driver/src/cy/retries.ts

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ export const create = (Cypress: ICypress, state: StateFunc, timeout: $Cy['timeou
3232
// want to accidentally time out via mocha
3333
let runnableTimeout
3434

35+
// if we are to retry any commands we need to be able to communicate with the origin
36+
// @ts-expect-error
37+
Cypress.ensure.commandCanCommunicateWithAUT(cy)
38+
3539
if (!options._runnableTimeout) {
3640
runnableTimeout = options.timeout ?? timeout()
3741
clearTimeout()

packages/graphql/schemas/cloud.graphql

+3-3
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ type CloudProjectNotFound {
333333
}
334334

335335
union CloudProjectResult =
336-
CloudProject
336+
| CloudProject
337337
| CloudProjectNotFound
338338
| CloudProjectUnauthorized
339339

@@ -456,7 +456,7 @@ type CloudProjectSpec implements Node {
456456
}
457457

458458
union CloudProjectSpecFlakyResult =
459-
CloudFeatureNotEnabled
459+
| CloudFeatureNotEnabled
460460
| CloudProjectSpecFlakyStatus
461461

462462
type CloudProjectSpecFlakyStatus {
@@ -500,7 +500,7 @@ type CloudProjectSpecNotFound {
500500
}
501501

502502
union CloudProjectSpecResult =
503-
CloudProjectSpec
503+
| CloudProjectSpec
504504
| CloudProjectSpecNotFound
505505
| CloudProjectUnauthorized
506506

0 commit comments

Comments
 (0)