Skip to content

Commit

Permalink
Use safer dispatchEvent
Browse files Browse the repository at this point in the history
Use safer dispatchEvent
  • Loading branch information
zdrapela committed Feb 6, 2025
1 parent 02238b5 commit 7cd88b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e-tests/playwright/utils/ui-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export class UIhelper {
.locator(`nav a:has-text("${navBarText}")`)
.first();
await navLink.waitFor({ state: "visible" });
await navLink.click();
await navLink.dispatchEvent("click");
}

async openSidebarButton(navBarButtonLabel: string) {
Expand Down

0 comments on commit 7cd88b2

Please sign in to comment.