Skip to content

BGDIINF_SB-2890: Fixing geodesie tests#485

Merged
ltshb merged 5 commits intodevelop-lv95from
bug-BGDIINF_SB-2890-drawing-layer-e2e-2
Oct 25, 2023
Merged

BGDIINF_SB-2890: Fixing geodesie tests#485
ltshb merged 5 commits intodevelop-lv95from
bug-BGDIINF_SB-2890-drawing-layer-e2e-2

Conversation

@ltshb
Copy link
Contributor

@ltshb ltshb commented Oct 24, 2023

See commit messages

Test link

@github-actions github-actions bot added the bug label Oct 24, 2023
@ltshb ltshb requested a review from pakb October 24, 2023 11:44
@ltshb ltshb changed the base branch from bug-BGDIINF_SB-2890-drawing-layer-e2e to develop-lv95 October 24, 2023 11:44
@ltshb ltshb force-pushed the bug-BGDIINF_SB-2890-drawing-layer-e2e-2 branch from 78254c0 to e31a1bb Compare October 24, 2023 11:45
@ltshb ltshb mentioned this pull request Oct 24, 2023
17 tasks
@ltshb ltshb force-pushed the bug-BGDIINF_SB-2890-drawing-layer-e2e-2 branch from e31a1bb to e8b78dc Compare October 24, 2023 14:49
Copy link
Contributor

@pakb pakb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit hard to judge if this will not break other tests than the geodesics as we are based on our LV95 work branch.

It might be a good idea to test this out while being based straight on develop, and see if all tests are green

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 👍

Comment on lines +12 to +16
/* In headed mode, the tests work perfectly fine even without these waits. In headless mode
hovewer, they are needed, as else, the mouse click event following may not be registered
correctly by the Draw and Modify interactions. The reasons for that are still unclear. */
const attempt = cy.state('runnable')._currentRetry // from 0 to 5
cy.wait(Math.min(750 + 500 * attempt, 1250))
// const attempt = cy.state('runnable')._currentRetry // from 0 to 5
// cy.wait(Math.min(750 + 500 * attempt, 1250))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this works without this portion, we might want to remove it altogether

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately without this wait the CI (and also local headless mode) don't pass. I reverted these changes.

ltshb added 4 commits October 25, 2023 08:50
On Chrome setting the `sr` query argument result to a primitive js `number`
type and not a `Number` instance.
E2E tests are done in both projection so correctly intercept them.
Those test were written for Web Mercator and can only be run in this projection.
The Geodesie test when running in browser make it crash using numTestsKeptInMemory
higher than 2 !
@ltshb ltshb force-pushed the bug-BGDIINF_SB-2890-drawing-layer-e2e-2 branch from e8b78dc to 9de03ab Compare October 25, 2023 08:04
@ltshb ltshb merged commit 3a76418 into develop-lv95 Oct 25, 2023
@ltshb ltshb deleted the bug-BGDIINF_SB-2890-drawing-layer-e2e-2 branch October 25, 2023 08:42
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