Skip to content

Commit

Permalink
fix android failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
cortisiko committed Nov 28, 2024
1 parent c24d39a commit f628023
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions e2e/pages/Browser/ConnectBottomSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ import { CommonSelectorsIDs } from '../../selectors/Common.selectors';

class ConnectBottomSheet {
get container() {
return Matchers.getElementByID(ConnectAccountBottomSheetSelectorsIDs.CONTAINER);
return Matchers.getElementByID(
ConnectAccountBottomSheetSelectorsIDs.CONTAINER,
);
}

get connectButton() {
return Matchers.getElementByID(CommonSelectorsIDs.CONNECT_BUTTON);
return device.getPlatform() === 'android'
? Matchers.getElementByLabel(CommonSelectorsIDs.CONNECT_BUTTON)
: Matchers.getElementByID(CommonSelectorsIDs.CONNECT_BUTTON);
}

get connectAccountsButton() {
Expand Down

0 comments on commit f628023

Please sign in to comment.