Skip to content

Commit

Permalink
test(menu): updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkimk committed Jan 16, 2025
2 parents 97bfa81 + fd44c0c commit 330a307
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 1 addition & 9 deletions packages/menu/test/menu-item.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,7 @@ describe('Menu item', () => {
it('allows link click', async () => {
let clicked = false;
const el = await fixture<Menu>(html`
<sp-menu
@click=${(event: Event) => {
clickTargetSpy(
event.composedPath()[0] as HTMLAnchorElement
);
event.stopPropagation();
event.preventDefault();
}}
>
<sp-menu>
<sp-menu-item href="#top" target="_blank">
With Target
</sp-menu-item>
Expand Down
2 changes: 0 additions & 2 deletions packages/menu/test/menu.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,6 @@ describe('Menu', () => {
})
);
await nextFrame();
// re-bind keyevents
el.startListeningToKeyboard();
// focus management should start again from the first item.
el.dispatchEvent(arrowDownEvent());
expect(secondItem.focused, 'second').to.be.true;
Expand Down

0 comments on commit 330a307

Please sign in to comment.