Skip to content

Commit ba7a354

Browse files
VIA-608 AJ Fix playwright finding multiple elements error
1 parent 082388a commit ba7a354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

e2e/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export const openExpandersIfPresent = async (page: Page) => {
9797
];
9898

9999
for (const title of expanderTitles) {
100-
const expander: Locator = page.getByText(title);
100+
const expander: Locator = page.getByText(title, { exact: true });
101101
if ((await expander.count()) > 0) {
102102
await expander.click();
103103
}

0 commit comments

Comments
 (0)