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
chore: notification telemetry #27026
chore: notification telemetry #27026
Conversation
28 flaky tests on run #48117 ↗︎
Details:
create-from-component.cy.ts • 1 flaky test • app-e2e
specs_list_latest_runs.cy.ts • 1 flaky test • app-e2e
cypress-origin-communicator.cy.ts • 1 flaky test • app-e2e
commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-firefox
commands/waiting.cy.js • 1 flaky test • 5x-driver-firefox
The first 5 flaky specs are shown, see all 17 specs in Cypress Cloud. This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
This looks like it will take some sort of Cloud work to implement. Please see internal Slack initiative channel for more details. For now, moving this back to 'draft' state. |
if (!this.projectBase) { | ||
debug('No projectBase, cannot change url') | ||
|
||
return | ||
} | ||
|
||
const newUrl = `#/debug` | ||
const params = JSON.stringify({ from: 'notification', runNumber }) |
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.
Neat idea to pass it through here.
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.
This looks much cleaner now, thank you @warrensplayer.
It looks like we collect a lot less telemetry than initially - great to see. This looks good to me. I gave it a small test. Let's merge this up and move onto the final QA / acceptance testing.
ccfdeef
into
feature/run-notifications-m1
Additional details
Capture some non-intrusive and non identifying telemetry for App Notifications.
Steps to test
There are two ways a user might navigate to the Debug page:
We want to capture how the user is navigating to the Debug page. That's what you are testing here.
The easiest way to do this is to turn on debugging for
cypress:data-context:actions:EventCollectorActions
and look for a message that saysRecorded machine-linked
with the expected event info.Then you can trigger the event like this:
source: sidebar
- just click the Debug icon in from the App. It will launch a mutation that eventually calls therecordEvent
action.source: notification
. This is a bit more tricky. You'll need to trigger a notification. You can see how to do that by looking at this PRs test plan. Once you click a notification, it should also record the event with the correctmedium
.Example:
How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?