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

chore: Add integ tests for single page funnels #1671

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

michaeldowseza
Copy link
Member

Description

This adds tests for the existing behaviour. It includes some fix mes that were found while writing and is intended as a start to testing.

Related links, issue #, if available: n/a

How has this been tested?

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3d3418e) 94.20% compared to head (9236679) 94.20%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1671   +/-   ##
=======================================
  Coverage   94.20%   94.20%           
=======================================
  Files         650      650           
  Lines       17539    17539           
  Branches     5776     5776           
=======================================
  Hits        16522    16522           
  Misses        948      948           
  Partials       69       69           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This adds tests for the existing behaviour. It includes some fix mes that were
found while writing and is intended as a start to testing.
},

funnelSubStepError(props): void {
const stepName = document.querySelector(props.stepNameSelector)!.innerHTML;
Copy link
Member

Choose a reason for hiding this comment

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

In some places you've used ? and in some places you've used !. I'd recommend to use ? everywhere, so that we still have the event even when some data is missing


describe('Embedded Form', () => {
test.skip(
'Forms embedded in Modal unrelataed to the main Form',
Copy link
Member

Choose a reason for hiding this comment

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

typo in unrelataed

@michaeldowseza michaeldowseza merged commit c8761fb into main Oct 25, 2023
31 checks passed
@michaeldowseza michaeldowseza deleted the analytics/integ-tests branch October 25, 2023 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants