Skip to content
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

va-language-toggle: Add label text to event, remove va-link analytics #1434

Merged
merged 3 commits into from
Dec 12, 2024

Conversation

ataker
Copy link
Contributor

@ataker ataker commented Dec 11, 2024

Chromatic

https://va-language-toggle-analytics-updates--65a6e2ed2314f7b8f98609d8.chromatic.com

Description

Closes Add va-language-toggle to ds-v3-playground for Analytics testing #3532

Making updates based on analytics team in slack

Added the link text to the event.
Disabled analytics on the va-link in va-language-toggle to prevent firing two events at once.

QA Checklist

  • Component maintains 1:1 parity with design mocks
  • Text is consistent with what's been provided in the mocks
  • Component behaves as expected across breakpoints
  • Accessibility expert has signed off on code changes (if applicable. If not applicable provide reason why)
  • Designer has signed off on changes (if applicable. If not applicable provide reason why)
  • Tab order and focus state work as expected
  • Changes have been tested against screen readers (if applicable. If not applicable provide reason why)
  • New components are covered by e2e tests; updates to existing components are covered by existing test suite
  • Changes have been tested in vets-website using Verdaccio (if applicable. If not applicable provide reason why)

Screenshots

Acceptance criteria

  • QA checklist has been completed
  • Screenshots have been attached that cover desktop and mobile screens

Definition of done

  • Documentation has been updated, if applicable
  • A link has been provided to the originating GitHub issue (or connected to it via ZenHub)

@ataker ataker added the patch Patch change in semantic versioning label Dec 11, 2024
@ataker ataker requested a review from a team as a code owner December 11, 2024 19:53
Copy link
Contributor

@jamigibbs jamigibbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

Do you think we could have caught the duplicate analytics firing if we used .toHaveReceivedEventTimes(1); instead of .toHaveReceivedEvent() in the test here? I have been guilty of doing one or the other not for any particular reason but maybe we need to start testing analytics events using toHaveReceivedEventTimes regularly. 🤔

@ataker
Copy link
Contributor Author

ataker commented Dec 12, 2024

Yeah, .toHaveReceivedEventTimes(1); would have failed. I updated this test, but that's good to note going forward.

@ataker ataker merged commit 6a387f5 into main Dec 12, 2024
8 checks passed
@ataker ataker deleted the va-language-toggle-analytics-updates branch December 12, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Patch change in semantic versioning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add va-language-toggle to ds-v3-playground for Analytics testing
2 participants