Skip to content

PB-317: Added basic toolbox to embed (zoom buttons) #697

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

Merged
merged 10 commits into from
Mar 13, 2024

Conversation

ltshb
Copy link
Contributor

@ltshb ltshb commented Mar 11, 2024

Copy link

cypress bot commented Mar 11, 2024

Passing run #1095 ↗︎

0 171 22 0 Flakiness 0

Details:

PB-317: Solving several e2e tests race conditions.
Project: web-mapviewer Commit: f3b9cd834a
Status: Passed Duration: 04:47 💡
Started: Mar 13, 2024 5:05 AM Ended: Mar 13, 2024 5:10 AM

Review all test suite changes for PR #697 ↗︎

@ltshb ltshb force-pushed the feat-PB-317-embed-zoom branch 14 times, most recently from 9c2b84a to d64411f Compare March 12, 2024 15:12
@ltshb ltshb marked this pull request as ready for review March 12, 2024 15:39
@ltshb ltshb force-pushed the feat-PB-317-embed-zoom branch from d64411f to 371cf29 Compare March 12, 2024 15:39
@ltshb ltshb requested review from pakb, ismailsunni and ltkum March 12, 2024 15:39
ltshb added 9 commits March 13, 2024 06:01
The store crashed, because when toggling to 2d we need to set the camera position
to null as in 2d we don't have a camera.
This is a preparation work to allow to add the basic map tools to the embed
vue, therefore remove it from the menu module and put it to the map module.

Those tools are anyway more some basic map tools that should be part of the map
module, and we keep the menu module for more advanced stuff.

Also made the map tool box with slot extensible.
…om windows.location

To avoid issue parsing a second time the query from the url, use it from the
vue router. Note that now we have more than one route and that the hash is not
always #/map but can be something else like #/embed
The util getUrlQuery() was buggy has it worked only if the hash was #/map
but now we have several views e.g. #/embed. Therefore remove this util and
use the router instead.
This ease the debugging of flaky cypress drawing tests
Somehow this test failed when using the data-cy=map, the pointer event was never
fired even though we waited for the pointer event to be set. It seems that using
the ol-map instead solved the issue. NOTE: the issue was only on the CI !
- Added a way to wait for the map pointer event listener to be set
- Added more logs to ease the debugging of flaky e2e tests
- Fix drawing flaky test which used the cy.readStoreValue() with then(), in
this case there is no retries and it might time to time failed, now we use
window.its().should() which based on the cypress documentation should retry
until the assertion is true.
@ltshb ltshb force-pushed the feat-PB-317-embed-zoom branch from 371cf29 to f3b9cd8 Compare March 13, 2024 05:02
@ltshb ltshb merged commit 66f1057 into develop Mar 13, 2024
@ltshb ltshb deleted the feat-PB-317-embed-zoom branch March 13, 2024 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants