Tests: ContentListPatternTest runs axe while a tooltip is still fading out

Open Beginner friendly
#905 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
cypress, laravel, php

Research direction

Start with tests/Browser/ContentListPatternTest.php and locate the test named “it passes axe on the cards, the filters sheet and a card's menu…”. Review how it opens the filters sheet and runs axe, then make sure the closing tooltip has disappeared or the pointer has left the card before the audit. Done when the test avoids auditing a fading tooltip and passes reliably.

Written by the indexing model from the issue text.

Description

area/tests type/bug when/soon

tests/Browser/ContentListPatternTest.php ("it passes axe on the cards, the filters sheet and a card's menu…") failed once on CI (the 1.11.0 release run, browser share 1 of 4) with a colour-contrast finding on a tooltip that was closing (data-state="closed"), measured behind the open filters sheet's scrim: foreground #272829 on #606162. The tooltip was mid fade-out under the overlay, so axe read blended colours. It passed on a rerun.

Fix: before running axe, wait until no tooltip is open or closing, for example until [data-slot="tooltip-content"] is gone. Or run axe with the sheet open only after the pointer has left the card that showed the tooltip.

Dominant language
PHP
Stars
1
Forks
1
Avg merge
1h 46m
Merged PRs (30d)
172

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from temecms/teme

All issues in temecms/teme

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.