Skip to content

Commit 66bba84

Browse files
authored
Merge branch 'release/15.0.0' into mabel/issue-10425-studio-redesign
2 parents 099fe7e + bfe90f6 commit 66bba84

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

packages/app/cypress/e2e/studio/studio.cy.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ describe('studio functionality', () => {
175175
cy.get('.runnable-title').its(3).should('contain.text', 'visits a basic html page 3')
176176
})
177177

178-
it('creates a new test from an empty spec', () => {
178+
// TODO: The URL prompt is in cloud studio now
179+
it.skip('creates a new test from an empty spec', () => {
179180
loadProjectAndRunSpec({ specName: 'empty.cy.js', specSelector: 'title' })
180181

181182
cy.contains('Create test with Cypress Studio').click()
@@ -204,7 +205,7 @@ it('new-test', function() {});
204205
})
205206
})
206207

207-
// TODO: skipping until https://github.com/cypress-io/cypress-services/issues/11086 is completed
208+
// TODO: The URL prompt is in cloud studio now
208209
it.skip('creates a new test for an existing spec', () => {
209210
launchStudio({ createNewTest: true })
210211

packages/app/src/runner/SpecRunnerOpenMode.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
:on-studio-panel-close="handleStudioPanelClose"
9898
:event-manager="eventManager"
9999
:studio-status="studioStatus"
100+
:aut-url-selector="autUrlSelector"
100101
/>
101102
</HideDuringScreenshot>
102103
</template>
@@ -135,6 +136,9 @@ import { useStudioStore } from '../store/studio-store'
135136
import StudioPanel from '../studio/StudioPanel.vue'
136137
import { useSubscription } from '../graphql'
137138
139+
// this is used by the StudioPanel to access the AUT URL input
140+
const autUrlSelector = '.aut-url-input'
141+
138142
const {
139143
preferredMinimumPanelWidth,
140144
absoluteAutMinimum,

packages/app/src/studio/StudioPanel.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const props = defineProps<{
5252
eventManager: EventManager
5353
studioStatus: string | null
5454
cloudStudioSessionId?: string
55+
autUrlSelector: string
5556
}>()
5657
5758
interface StudioApp { default: StudioAppDefaultShape }
@@ -77,6 +78,7 @@ const maybeRenderReactComponent = () => {
7778
canAccessStudioAI: props.canAccessStudioAI,
7879
onStudioPanelClose: props.onStudioPanelClose,
7980
studioSessionId: props.cloudStudioSessionId,
81+
autUrlSelector: props.autUrlSelector,
8082
})
8183
8284
// Store the react root in a weak map keyed by the container. We do this so that we have a reference

0 commit comments

Comments
 (0)