-
Notifications
You must be signed in to change notification settings - Fork 3.3k
internal: (studio) do not record events if cloud studio is enabled #31858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -853,7 +864,7 @@ export const useStudioStore = defineStore('studioRecorder', { | |||
return $el.hasClass('__cypress-studio-assertions-menu') | |||
}, | |||
|
|||
_openAssertionsMenu (event) { | |||
_openAssertionsMenu (event, addAssertion?: ($el: HTMLElement | JQuery<HTMLElement>, ...args: AssertionArgs) => void) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding the ability to pass in addAssertion
here allows us to control assertion recording from the cloud without having to move the whole assertion menu UI over - see the other PR for how we hook into this
cypress
|
Project |
cypress
|
Branch Review |
studio-cloud-listeners
|
Run status |
|
Run duration | 19m 29s |
Commit |
|
Committer | astone123 |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
16
|
|
1232
|
|
0
|
|
32183
|
View all changes introduced in this branch ↗︎ |
UI Coverage
45.56%
|
|
---|---|
|
191
|
|
164
|
Accessibility
92.74%
|
|
---|---|
|
3 critical
9 serious
2 moderate
2 minor
|
|
695
|
@@ -269,6 +269,8 @@ useSubscription({ query: StudioStatus_ChangeDocument }, (_, data) => { | |||
}) | |||
|
|||
const cloudStudioRequested = computed(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! I think I need this for cy.prompt
actually.
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Additional details
For this ticket, we're moving all of the AUT event listener logic over to the cloud studio side. This PR updates the app so that if we're in cloud studio mode, we don't add the event listeners for current studio, since that would result in duplicate event listeners being added.
See related Cloud PR https://github.com/cypress-io/cypress-services/pull/10939
Steps to test
Test the cloud PR and make sure that when running with current studio you can still record commands
How has the user experience changed?
Both studio experiences should remain the same from a user's perspective.
PR Tasks