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

[Test maintenance] API call test is flaky on firefox some passes/fails inconsistently #348

Open
mnyamunda-scottlogic opened this issue Sep 16, 2024 · 0 comments

Comments

@mnyamunda-scottlogic
Copy link
Collaborator

Image

Here is a test that asserts the amount of requests that should be sent for a specific forecast days setting.
Problem:
The assertion happens way too soon on Firefox. Which means that the calls are not given a proper grace period before being counted. There is a 1 second wait added in the screenshot above which is a temporary fix.
await page.waitForTimeout(1000)

Would be good to have something more robust like a network polling method similar to waitForIdleNetwork in
air-quality-ui\system_tests\utils\helper_methods.ts

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

No branches or pull requests

1 participant