forked from Ivasoft/mattermost-mobile
Detox/E2E Maintenance: Fix broken iOS e2e tests (#6917)
This commit is contained in:
@@ -61,7 +61,7 @@ const ReportProblem = ({buildNumber, currentTeamId, currentUserId, siteName, sup
|
||||
onPress={openEmailClient}
|
||||
optionName='report_problem'
|
||||
separator={false}
|
||||
testID='settings.report.problem'
|
||||
testID='settings.report_problem.option'
|
||||
type='default'
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -15,6 +15,7 @@ class SettingsScreen {
|
||||
advancedSettingsOption: 'settings.advanced_settings.option',
|
||||
aboutOption: 'settings.about.option',
|
||||
helpOption: 'settings.help.option',
|
||||
reportProblemOption: 'settings.report_problem.option',
|
||||
};
|
||||
|
||||
settingsScreen = element(by.id(this.testID.settingsScreen));
|
||||
@@ -25,6 +26,7 @@ class SettingsScreen {
|
||||
advancedSettingsOption = element(by.id(this.testID.advancedSettingsOption));
|
||||
aboutOption = element(by.id(this.testID.aboutOption));
|
||||
helpOption = element(by.id(this.testID.helpOption));
|
||||
reportProblemOption = element(by.id(this.testID.reportProblemOption));
|
||||
|
||||
toBeVisible = async () => {
|
||||
await waitFor(this.settingsScreen).toExist().withTimeout(timeouts.TEN_SEC);
|
||||
|
||||
@@ -154,7 +154,7 @@ describe('Account - Custom Status', () => {
|
||||
await AccountScreen.customStatusClearButton.tap();
|
||||
|
||||
// * Verify custom status is cleared from account screen
|
||||
const defaultStatusText = 'Set a Status';
|
||||
const defaultStatusText = 'Set a custom status';
|
||||
const {accountCustomStatusEmoji, accountCustomStatusText, accountCustomStatusExpiry} = AccountScreen.getCustomStatus(customStatusEmojiName, customStatusDuration);
|
||||
await expect(accountCustomStatusEmoji).not.toExist();
|
||||
await expect(accountCustomStatusText).toHaveText(defaultStatusText);
|
||||
|
||||
@@ -58,6 +58,7 @@ describe('Account - Settings', () => {
|
||||
await expect(SettingsScreen.advancedSettingsOption).toBeVisible();
|
||||
await expect(SettingsScreen.aboutOption).toBeVisible();
|
||||
await expect(SettingsScreen.helpOption).toBeVisible();
|
||||
await expect(SettingsScreen.reportProblemOption).toBeVisible();
|
||||
});
|
||||
|
||||
it('MM-T4991_2 - should be able to go to notification settings screen', async () => {
|
||||
|
||||
@@ -59,11 +59,9 @@ describe('Channels - Channel Info', () => {
|
||||
await expect(element(by.text(`Channel header: ${testChannel.display_name.toLowerCase()}`))).toBeVisible();
|
||||
await expect(ChannelInfoScreen.favoriteAction).toBeVisible();
|
||||
await expect(ChannelInfoScreen.muteAction).toBeVisible();
|
||||
await expect(ChannelInfoScreen.addPeopleAction).toBeVisible();
|
||||
await expect(ChannelInfoScreen.joinStartCallAction).toBeVisible();
|
||||
await expect(ChannelInfoScreen.ignoreMentionsOptionToggledOff).toBeVisible();
|
||||
await expect(ChannelInfoScreen.pinnedMessagesOption).toBeVisible();
|
||||
await expect(ChannelInfoScreen.membersOption).toBeVisible();
|
||||
await expect(ChannelInfoScreen.copyChannelLinkOption).toBeVisible();
|
||||
await expect(ChannelInfoScreen.editChannelOption).toBeVisible();
|
||||
await expect(ChannelInfoScreen.leaveChannelOption).toBeVisible();
|
||||
|
||||
@@ -57,7 +57,6 @@ describe('Channels - Channel Post List', () => {
|
||||
await expect(ChannelScreen.backButton).toBeVisible();
|
||||
await expect(ChannelScreen.headerTitle).toHaveText(testChannel.display_name);
|
||||
await expect(ChannelScreen.introDisplayName).toHaveText(testChannel.display_name);
|
||||
await expect(ChannelScreen.introAddPeopleAction).toBeVisible();
|
||||
await expect(ChannelScreen.introSetHeaderAction).toBeVisible();
|
||||
await expect(ChannelScreen.introChannelInfoAction).toBeVisible();
|
||||
await expect(ChannelScreen.postList.getFlatList()).toBeVisible();
|
||||
|
||||
@@ -88,7 +88,7 @@ describe('Smoke Test - Account', () => {
|
||||
await AccountScreen.customStatusClearButton.tap();
|
||||
|
||||
// * Verify custom status is cleared from account screen
|
||||
const defaultStatusText = 'Set a Status';
|
||||
const defaultStatusText = 'Set a custom status';
|
||||
await expect(accountCustomStatusEmoji).not.toExist();
|
||||
await expect(accountCustomStatusText).toHaveText(defaultStatusText);
|
||||
await expect(accountCustomStatusExpiry).not.toExist();
|
||||
|
||||
Reference in New Issue
Block a user