From 63dcfefa7415bba1d81f1fe3ace4447c1b2c508f Mon Sep 17 00:00:00 2001 From: AtofStryker Date: Fri, 10 Jan 2025 17:05:07 -0500 Subject: [PATCH] fix: make sure scrollTo can communicate with the AUT --- packages/driver/src/cy/commands/actions/scroll.ts | 3 +++ packages/graphql/schemas/cloud.graphql | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/driver/src/cy/commands/actions/scroll.ts b/packages/driver/src/cy/commands/actions/scroll.ts index 04b7f31fa958..0529c27f7b88 100644 --- a/packages/driver/src/cy/commands/actions/scroll.ts +++ b/packages/driver/src/cy/commands/actions/scroll.ts @@ -325,6 +325,9 @@ export default (Commands, Cypress, cy, state) => { const subjectChain = cy.subjectChain() const ensureScrollability = () => { + // Make sure the scroll command can communicate with the AUT + Cypress.ensure.commandCanCommunicateWithAUT(cy) + try { subject = cy.getSubjectFromChain(subjectChain) 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