Flaky browser test: AreaHeadersTest 'shows Counting on the way while deferred tab counts load'

Open Beginner friendly
#923 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
74/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
laravel, php
Domain
testing

Research direction

Start with the AreaHeadersTest case named “shows Counting on the way while deferred tab counts load” and the browser test run linked in the issue. Move the screen-reader text check into the same wait condition that finds the pill. Done when the test checks the text before the deferred counts make the pill disappear.

Written by the indexing model from the issue text.

Description

area/tests type/bug when/soon

The test waits for the Counting pill, then checks the pill's screen-reader text in a separate step. The counts arrive about 400 ms after the pill is drawn, and the pill disappears when they do. If the check runs after that, it finds no pill and fails with Failed asserting that false is identical to true.

Seen on the 1.15 join pull request (browser share 2): https://github.com/temecms/teme/actions/runs/47421032708

Fix: check the pill's text inside the same wait condition that finds the pill, so both happen while it is on screen.

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.