-
-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix insertion of access tokens, when swapping renderer #1021
Fix insertion of access tokens, when swapping renderer #1021
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1021 +/- ##
==========================================
+ Coverage 59.84% 64.37% +4.53%
==========================================
Files 104 104
Lines 3011 5825 +2814
Branches 680 1724 +1044
==========================================
+ Hits 1802 3750 +1948
- Misses 1209 2073 +864
- Partials 0 2 +2 ☔ View full report in Codecov by Sentry. |
Is there a test we can add to make sure this behavior is kept in the future? |
ffce5cf
to
c612220
Compare
I'm not sure how to test this through dom/cypress. It's quite different from the other tests, as it's about network calls and visual output on canvas. Cypress clearly is capable of both (network and snapshots), I just have to study it. |
You can use Cypress to intercept network calls I believe. |
@HarelM , figured out the test now. It checks the requests made after the render change has the access token instead of just |
The test needs some cleaning up, otherwise this looks good, thanks! |
Firefox and cypress do not play together well, this is not the fire time the tests are passing with chrome but not with firefox, maybe we should drop support for firefox and hope it works well, IDK... |
d53e162
to
4039ef0
Compare
4039ef0
to
42ba9dc
Compare
@HarelM , I've removed firefox in this pr too. |
Great! Thanks! |
Not sure why it's still showing an "E2E tests using firefox" |
@HarelM , is this PR approved? |
It was required in the setting of the branch protection, I've removed it and fixed it now. |
@birkskyum can you take a look at the added cypress test here? |
Going from e.g. MapTiler to OpenLayers and back will lose the maptlier key.
This code finds the urls in the style that has "{key}" and insert the correct API keys
Fixes the error reported here, cc @nyurik
Related to:
Launch Checklist
CHANGELOG.md
under the## main
section.