fix: duplication occurs when card view is switched to embed view (#8407) #6238
Annotations
1 error, 1 warning, and 1 notice
tests/slash-menu.spec.ts#L396
1) slash-menu.spec.ts:373:3 › slash menu should show and hide correctly › should open and close menu when using left right arrow, Enter, Esc keys
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('.slash-menu[data-testid=sub-menu-0]').locator('icon-button').nth(4)
Expected string: "true"
Received string: "false"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('.slash-menu[data-testid=sub-menu-0]').locator('icon-button').nth(4)
- locator resolved to <icon-button width="100%" tabindex="0" height="44px" hover="false" role="button" text="Other Headings" data-test-disabled="false" data-testid="Other Headings" class="slash-menu-item other-headings">…</icon-button>
- unexpected value "false"
- locator resolved to <icon-button width="100%" tabindex="0" height="44px" hover="false" role="button" text="Other Headings" data-test-disabled="false" data-testid="Other Headings" class="slash-menu-item other-headings">…</icon-button>
- unexpected value "false"
- locator resolved to <icon-button width="100%" tabindex="0" height="44px" hover="false" role="button" text="Other Headings" data-test-disabled="false" data-testid="Other Headings" class="slash-menu-item other-headings">…</icon-button>
- unexpected value "false"
- locator resolved to <icon-button width="100%" tabindex="0" height="44px" hover="false" role="button" text="Other Headings" data-test-disabled="false" data-testid="Other Headings" class="slash-menu-item other-headings">…</icon-button>
- unexpected value "false"
- locator resolved to <icon-button width="100%" tabindex="0" height="44px" hover="false" role="button" text="Other Headings" data-test-disabled="false" data-testid="Other Headings" class="slash-menu-item other-headings">…</icon-button>
- unexpected value "false"
- locator resolved to <icon-button width="100%" tabindex="0" height="44px" hover="false" role="button" text="Other Headings" data-test-disabled="false" data-testid="Other Headings" class="slash-menu-item other-headings">…</icon-button>
- unexpected value "false"
- locator resolved to <icon-button width="100%" tabindex="0" height="44px" hover="false" role="button" text="Other Headings" data-test-disabled="false" data-testid="Other Headings" class="slash-menu-item other-headings">…</icon-button>
- unexpected value "false"
- locator resolved to <icon-button width="100%" tabindex="0" height="44px" hover="false" role="button" text="Other Headings" data-test-disabled="false" data-testid="Other Headings" class="slash-menu-item other-headings">…</icon-button>
- unexpected value "false"
- locator resolved to <icon-button width="100%" tabindex="0" height="44px" hover="false" role="button" text="Other Headings" data-test-disabled="false" data-testid="Other Headings" class="slash-menu-item other-headings">…</icon-button>
- unexpected value "false"
394 | await type(page, '/');
395 | await pressArrowDown(page, 4);
> 396 | await expect(slashItems.nth(4)).toHaveAttribute('hover', 'true');
| ^
397 | await expect(slashItems.nth(4).locator('.text')).toHaveText([
398 | 'Other Headings',
399 | ]);
at /home/runner/work/blocksuite/blocksuite/tests/slash-menu.spec.ts:396:37
|
|
|
This job succeeded
Loading