Skip to content

Commit

Permalink
fix(project): e2e mobile tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olga-jwp committed Aug 2, 2023
1 parent 1388ad2 commit b6c6df5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-e2e/utils/steps_file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ const stepsObj = {
if (isMobile) {
// This swipes on the current item in the carousel where the card we're trying to click is
await this.swipe({
xpath: shelfXpath ? `${shelfXpath}//*[@tabindex=0]` : `${locator}/ancestor::ul/li/div[@tabindex=0]`,
xpath: shelfXpath ? `${shelfXpath}//*[@tabindex=0]` : `${locator}/ancestor::ul/li/a[@tabindex=0]`,
direction: scrollToTheRight ? 'left' : 'right',
});
} else {
Expand Down

0 comments on commit b6c6df5

Please sign in to comment.