Skip to content

Commit

Permalink
fix: e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OtavioStasiak committed Mar 7, 2025
1 parent c039333 commit 39ad95a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/containers/CustomHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const CustomHeader = ({ options, navigation, route }: IHeader) => {
labelVisible={false}
onPress={() => navigation.goBack()}
tintColor={colors.fontDefault}
testID='header-back'
testID='custom-header-back'
style={styles.headerBackButton}
/>
)}
Expand Down
4 changes: 2 additions & 2 deletions app/views/TeamChannelsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,13 @@ class TeamChannelsView extends React.Component<ITeamChannelsViewProps, ITeamChan
headerTitle: () => (
<SearchHeader onSearchChangeText={this.onSearchChangeText} testID='team-channels-view-search-header' />
),
headerRight: () => null
headerRight: undefined
};
return navigation.setOptions(options);
}

const options: NativeStackNavigationOptions = {
headerLeft: () => null,
headerLeft: undefined,
headerTitle: () => (
<RoomHeader title={getRoomTitle(team)} subtitle={team.topic} type={team.t} onPress={this.goRoomActionsView} teamMain />
),
Expand Down
2 changes: 1 addition & 1 deletion app/views/ThreadMessagesView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class ThreadMessagesView extends React.Component<IThreadMessagesViewProps, IThre
}

const options: NativeStackNavigationOptions = {
headerLeft: () => null,
headerLeft: undefined,
headerTitle: I18n.t('Threads'),
headerRight: () => (
<HeaderButton.Container>
Expand Down
2 changes: 1 addition & 1 deletion e2e/helpers/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ async function mockMessage(message: string, isThread = false) {
async function tapBack() {
if (device.getPlatform() === 'ios') {
try {
await element(by.type('UIAccessibilityBackButtonElement')).tap();
await element(by.id('custom-header-back')).atIndex(0).tap();
} catch (error) {
await element(by.id('header-back')).atIndex(0).tap();
}
Expand Down

0 comments on commit 39ad95a

Please sign in to comment.