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

tests: ask playwright to way for ajax before checking the page state #1564

Closed
wants to merge 1 commit into from

Conversation

yohanboniface
Copy link
Member

Should fix the instable test.

@@ -31,11 +33,14 @@ def test_collaborative_editing_create_markers(context, live_server, tilelayer):
map_el_p1.click(position={"x": 200, "y": 200})
expect(marker_pane_p1).to_have_count(1)

save_p1.click()
with page_one.expect_response(re.compile(r".*/datalayer/update/.*")):
Copy link
Member

Choose a reason for hiding this comment

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

nit: quitte à compiler la regexp, autant le faire qu'une seule fois et la réutiliser pour les autres tests ?

@yohanboniface
Copy link
Member Author

Does not work as expected: test is still failing intermittently :(

@yohanboniface yohanboniface deleted the playwright-wait-for-ajax branch January 29, 2024 13:15
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