Skip to content

bug(web): guide-examples.tests.ts appears to have a race #16167

Description

@mcdurdin

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

Metadata

Metadata

Assignees

Labels

Type

Projects

Status
In Progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions