Skip to content

[Test] High contrast is enabled after running the accessibility.liveRegion.activityStatus.sendFailed.contrast test #4569

@compulim

Description

@compulim

Is it an issue related to Adaptive Cards?

No

Is this an accessibility issue?

No

What version of Web Chat are you using?

Unrelated

Which distribution are you using Web Chat from?

Unrelated

Which hosting environment does this issue primarily affect?

Others or unrelated

Which browsers and platforms do the issue happened?

No response

Which area does this issue affect?

Others or unrelated

What is the public URL for the website?

No response

Please describe the bug

When tests are run after accessibility.liveRegion.activityStatus.sendFailed.contrast.html, their snapshot test will fail because the mentioned test enabled forced-colors.

We should unset forced-colors before every test run.

Do you see any errors in console log?

No response

How to reproduce the issue?

Tests are run in parallel with 4 workers, to increase the likelihood of the issue, we tune it down to 1 worker.

  1. Modify package.json/scripts/docker and change --scale chrome=4 to --scale chrome=1
  2. Run npm test -- --maxWorkers=1 --testPath sendfailed

What do you expect?

All tests should pass.

What actually happened?

Some tests fail because the snapshot is taken in high contrast mode.

Do you have any screenshots or recordings to repro the issue?

No response

Adaptive Card JSON

No response

Additional context

This is related to #4537.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or an unintended behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions