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

fix: Soft navigation bug fixes and new soft navigation tests #1268

Merged
merged 11 commits into from
Dec 17, 2024

Conversation

ellisong
Copy link
Contributor

@ellisong ellisong commented Dec 2, 2024

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.

Copy link

github-actions bot commented Dec 2, 2024

Asset Size Report

Merging this pull request will result in the following asset size changes:

Agent Asset Previous Size New Size Diff
lite loader 29.96 kB / 10.82 kB (gzip) 29.98 kB / 10.83 kB (gzip) 0.07% / 0.06% (gzip)
lite async-chunk 53.39 kB / 17.35 kB (gzip) 53.39 kB / 17.35 kB (gzip) 0% / 0% (gzip)
pro loader 51.44 kB / 17.7 kB (gzip) 51.46 kB / 17.71 kB (gzip) 0.04% / 0.02% (gzip)
pro async-chunk 101.55 kB / 30.93 kB (gzip) 101.89 kB / 31.07 kB (gzip) 0.33% / 0.44% (gzip)
spa loader 59.02 kB / 20.02 kB (gzip) 59.08 kB / 20.05 kB (gzip) 0.1% / 0.13% (gzip)
spa async-chunk 116.27 kB / 35.21 kB (gzip) 116.56 kB / 35.34 kB (gzip) 0.25% / 0.35% (gzip)

Copy link

codecov bot commented Dec 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.05%. Comparing base (9ddc851) to head (3a62877).
Report is 4 commits behind head on main.

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     
Flag Coverage Δ
integration-tests 91.71% <100.00%> (+0.07%) ⬆️
unit-tests 79.57% <100.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link

github-actions bot commented Dec 2, 2024

Static Badge

Last ran on December 16, 2024 17:17:03 CST
Checking merge of (3a62877) into main (9ddc851)

@ellisong ellisong force-pushed the translate-spa-tests branch 2 times, most recently from abd1e4d to 6225ce0 Compare December 11, 2024 22:28
@ellisong ellisong force-pushed the translate-spa-tests branch from 5350df6 to 3a62877 Compare December 16, 2024 22:42
@metal-messiah
Copy link
Member

metal-messiah commented Dec 17, 2024

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

@ellisong ellisong changed the title fix: Translate spa tests fix: Soft navigation bug fixes and new soft navigation tests Dec 17, 2024
@ellisong ellisong merged commit 7624928 into main Dec 17, 2024
34 of 35 checks passed
@ellisong ellisong deleted the translate-spa-tests branch December 17, 2024 19:35
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.

4 participants