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 multi page create funnel metrics #1695

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

michaeldowseza
Copy link
Member

@michaeldowseza michaeldowseza commented Oct 26, 2023

Description

Similar to this PR to add for integ tests for single page.

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 26, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (733845a) 94.19% compared to head (10950df) 94.20%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1695   +/-   ##
=======================================
  Coverage   94.19%   94.20%           
=======================================
  Files         650      650           
  Lines       17539    17539           
  Branches     5775     5775           
=======================================
+ Hits        16521    16522    +1     
+ Misses        949      948    -1     
  Partials       69       69           

see 1 file with indirect coverage changes

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

@michaeldowseza michaeldowseza changed the title chore: Add integ test for multi-page chore: Add integ tests for multi page create funnel metrics Oct 26, 2023
@michaeldowseza michaeldowseza marked this pull request as ready for review October 26, 2023 14:05
@michaeldowseza michaeldowseza requested a review from a team as a code owner October 26, 2023 14:05
@michaeldowseza michaeldowseza requested review from rubencarvalho and removed request for a team October 26, 2023 14:05
const { funnelLog, actions } = await page.getFunnelLog();
expect(actions).toEqual(['funnelStart', 'funnelStepStart']);

const [funnelStartEvent, funnelStartStepEvent] = funnelLog;
Copy link
Member

Choose a reason for hiding this comment

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

minor: we could rename "funnelStartStepEvent" to "funnelStepStartEvent" to align with the event name

Copy link
Member Author

Choose a reason for hiding this comment

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

Will follow up with a fix.

@michaeldowseza michaeldowseza merged commit d8114c6 into main Oct 27, 2023
33 checks passed
@michaeldowseza michaeldowseza deleted the analytics/integ-tests-multi-page branch October 27, 2023 13:47
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