-
Notifications
You must be signed in to change notification settings - Fork 44
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
fix: Soft navigation bug fixes and new soft navigation tests #1268
Conversation
Asset Size Report
Merging this pull request will result in the following asset size changes:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1268 +/- ##
==========================================
+ Coverage 89.03% 89.05% +0.02%
==========================================
Files 170 170
Lines 7416 7422 +6
Branches 1493 1496 +3
==========================================
+ Hits 6603 6610 +7
+ Misses 692 690 -2
- Partials 121 122 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
abd1e4d
to
6225ce0
Compare
5350df6
to
3a62877
Compare
Since this will show up in the release notes and changelog -- Can you update the PR title to reflect what specific bugs were addressed with this work and target that description to be more of a "bug fix" description |
Fixes several issues tied to the soft navigations feature. Calling newrelic.interaction() prior to a page load now creates a separate "api" trigger node. Multiple interactions managed simultaneously now have correct timings. Fixes a bug in soft navigation where API-triggered interactions fail to close under default heuristic (URL + DOM change) because the mutation observer is not started. Finally, 'popstate' events are now valid interaction triggers for soft navigations.
Overview
Fixes a few bugs related to the soft navigation feature and adds new tests ported from the old spa feature. Not all of the tests are portable due to functional differences or limitations.
Related Issue(s)
https://new-relic.atlassian.net/browse/NR-300966
bug: https://new-relic.atlassian.net/browse/NR-343675
Testing
Make sure all tests pass on all browsers.