Skip to content

Commit cb4aa68

Browse files
committed
test: click on the first tag
When testing app store, in the click on tag step, force the selector to use the first element. This fixes the issue where several same tags are present.
1 parent b531f7c commit cb4aa68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/e2e/support/objects/app-store/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const selectors = {
1414
appDetailsTitle: '//h2[contains(@class, "app-details-title")][text()="%s"]',
1515
appsFilter: '#apps-filter',
1616
tag: '//button[contains(@class,"oc-tag")][span[text()="%s"]]',
17-
appTag: '//a[contains(.,"%s")]/following::button[contains(@class,"oc-tag")][span[text()="%s"]]'
17+
appTag: '//a[contains(.,"%s")]/following::button[contains(@class,"oc-tag")][span[text()="%s"]][1]'
1818
}
1919

2020
export const openAppStore = async (args: { page: Page }): Promise<void> => {

0 commit comments

Comments
 (0)