Skip to content

Commit 39ad95a

Browse files
committed
fix: e2e tests
1 parent c039333 commit 39ad95a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

app/containers/CustomHeader/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const CustomHeader = ({ options, navigation, route }: IHeader) => {
4343
labelVisible={false}
4444
onPress={() => navigation.goBack()}
4545
tintColor={colors.fontDefault}
46-
testID='header-back'
46+
testID='custom-header-back'
4747
style={styles.headerBackButton}
4848
/>
4949
)}

app/views/TeamChannelsView.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -233,13 +233,13 @@ class TeamChannelsView extends React.Component<ITeamChannelsViewProps, ITeamChan
233233
headerTitle: () => (
234234
<SearchHeader onSearchChangeText={this.onSearchChangeText} testID='team-channels-view-search-header' />
235235
),
236-
headerRight: () => null
236+
headerRight: undefined
237237
};
238238
return navigation.setOptions(options);
239239
}
240240

241241
const options: NativeStackNavigationOptions = {
242-
headerLeft: () => null,
242+
headerLeft: undefined,
243243
headerTitle: () => (
244244
<RoomHeader title={getRoomTitle(team)} subtitle={team.topic} type={team.t} onPress={this.goRoomActionsView} teamMain />
245245
),

app/views/ThreadMessagesView/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class ThreadMessagesView extends React.Component<IThreadMessagesViewProps, IThre
124124
}
125125

126126
const options: NativeStackNavigationOptions = {
127-
headerLeft: () => null,
127+
headerLeft: undefined,
128128
headerTitle: I18n.t('Threads'),
129129
headerRight: () => (
130130
<HeaderButton.Container>

e2e/helpers/app.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ async function mockMessage(message: string, isThread = false) {
129129
async function tapBack() {
130130
if (device.getPlatform() === 'ios') {
131131
try {
132-
await element(by.type('UIAccessibilityBackButtonElement')).tap();
132+
await element(by.id('custom-header-back')).atIndex(0).tap();
133133
} catch (error) {
134134
await element(by.id('header-back')).atIndex(0).tap();
135135
}

0 commit comments

Comments
 (0)