bug(web): guide-examples.tests.ts appears to have a race
- Dominant language
- Pascal
- Stars
- 534
- Forks
- 143
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 113
Description
This test was passing in other scenarios, but sometimes fails. Perhaps a missing await somewhere in test or library code?
```
1) [chromium] › guide-examples.tests.ts:32:3 › First example from the guide › Keyman menu has expected keyboards
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 0
Array [
"(System keyboard)",
"English - US",
- "Thai - Thai Kedmanee Basic",
]
38 | await expect(page.getByRole('img', { name: 'Use Web Keyboard' })).toBeVisible();
39 | await expect(page.getByRole('img', { name: 'Show On Screen Keyboard' })).toBeVisible();
> 40 | await expect(await getAllKeyboardMenuText(page)).toEqual(['(System keyboard)', 'English - US', 'Thai - Thai Kedmanee Basic'])
| ^
41 | });
42 | });
43 |
at /home/build/build/web/src/test/auto/e2e/guide-examples.tests.ts:40:54
1 failed
[chromium] › guide-examples.tests.ts:32:3 › First example from the guide › Keyman menu has expected keyboards
```
https://github.com/keymanapp/keyman/actions/runs/28465471401/job/84367897912
Contributor guide
Assessment
This issue has not been assessed yet.