Skip to content

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

@mnyamunda-scottlogic

Description

@mnyamunda-scottlogic

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions