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

(1/3) Fix map loading during tests #340

Merged
merged 1 commit into from
Sep 18, 2024
Merged

(1/3) Fix map loading during tests #340

merged 1 commit into from
Sep 18, 2024

Conversation

lukebrody
Copy link
Collaborator

We need to be able to wait for the map to load during tests to capture the correct screenshot.

Add some state to the map so that it sets a CSS class when not loaded. Avoid a bug where the map reloads infinitely, by ignoring loading state updates when updating the map version.

Modify the test utils to wait for that CSS class to not be present before taking a screenshot.

@lukebrody lukebrody requested a review from kavigupta September 17, 2024 21:21
@lukebrody lukebrody self-assigned this Sep 17, 2024
@lukebrody
Copy link
Collaborator Author

lukebrody commented Sep 17, 2024

(replaces #339)

@lukebrody lukebrody changed the title Fix map loading during tests (1/3) Fix map loading during tests Sep 17, 2024
This was referenced Sep 17, 2024
@kavigupta kavigupta merged commit ed31214 into master Sep 18, 2024
14 checks passed
@kavigupta kavigupta deleted the lb/1-map-fixes branch September 18, 2024 06:09
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