Detox: Android fix MM-T4728_2 - should match elements on channel list… (#7156)

* Detox: Android fix MM-T4728_1 - should match elements on channel list screen

* Address comments

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
Elisabeth Kulzer
2023-03-07 21:26:33 +01:00
committed by GitHub
parent 01b5fc0f9e
commit 07aa748cd7

View File

@@ -82,7 +82,6 @@ describe('Channels - Channel List', () => {
// * Verify on first channel
await ChannelScreen.toBeVisible();
await expect(ChannelScreen.headerTitle).toHaveText(testChannel.display_name);
await expect(ChannelScreen.introDisplayName).toHaveText(testChannel.display_name);
// # Go back to channel list screen and tap on a second channel
await ChannelScreen.back();
@@ -92,7 +91,15 @@ describe('Channels - Channel List', () => {
// * Verify on second channel
await ChannelScreen.toBeVisible();
await expect(ChannelScreen.headerTitle).toHaveText('Off-Topic');
await expect(ChannelScreen.introDisplayName).toHaveText('Off-Topic');
// # Go back to channel list screen and tap on a third channel
await ChannelScreen.back();
await ChannelListScreen.toBeVisible();
await ChannelListScreen.getChannelItemDisplayName(channelsCategory, townSquareChannelName).tap();
// * Verify on third channel
await ChannelScreen.toBeVisible();
await expect(ChannelScreen.headerTitle).toHaveText('Town Square');
// # Go back to channel list screen
await ChannelScreen.back();