refactor: don't call created if it doesn't exist #5796
Annotations
1 error and 1 notice
Run tests:
e2e/models/menu.model.ts#L63
1) menu.e2e.ts:48:7 › menu › with keyboard, can select item ──────────────────────────────────────
Error: Timed out 10000ms waiting for expect(locator).not.toBeVisible()
Locator: locator('[data-scope=menu][data-part=content]')
Expected: not visible
Received: visible
Call log:
- expect.not.toBeVisible with timeout 10000ms
- waiting for locator('[data-scope=menu][data-part=content]')
14 × locator resolved to <ul role="menu" tabindex="0" data-scope="menu" data-state="open" data-part="content" id="menu::R6m::content" data-placement="bottom-start" aria-labelledby="menu::R6m::trigger">…</ul>
- unexpected value "visible"
at models/menu.model.ts:63
61 |
62 | dontSeeDropdown = async () => {
> 63 | await expect(this.content).not.toBeVisible()
| ^
64 | }
65 |
66 | seeItemIsHighlighted = async (text: string) => {
at MenuModel.dontSeeDropdown (/home/runner/work/zag/zag/e2e/models/menu.model.ts:63:36)
at /home/runner/work/zag/zag/e2e/menu.e2e.ts:52:13
|
Run tests
1 flaky
menu.e2e.ts:48:7 › menu › with keyboard, can select item ───────────────────────────────────────
20 passed (51.1s)
|
Loading