Skip to content

accessibility warning in setTimeout breaks tests  #17236

@jnizet

Description

@jnizet

Version 10.1.0 introduced an error message in case the accessibility module is not loaded. See the change here: https://github.com/highcharts/highcharts-dist/blob/master/es-modules/Core/Chart/Chart.js#L1953-L1966

Unfortunately, it does that in a setTimeout, and there is no way to disable this setTimeout, even by disabling accessibility or adding the accessibility module, because the checks are done in the setTimeout callback itself. So, this setTimeout is always executed, no matter what.
It might not seem like a big deal, but we have tests (in an Angular application), using a "fakeAsync" zone where tests fail shen a timer is still in the queue. And this timeout does that: it introduces a new, unexpected timer, in the queue.

Product version

Highcharts 10.1.0

Affected browser(s)

All

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions