From 07aa748cd7a2c9308eb7b7b28e3fc11ef062d1a5 Mon Sep 17 00:00:00 2001 From: Elisabeth Kulzer <9913860+metanerd@users.noreply.github.com> Date: Tue, 7 Mar 2023 21:26:33 +0100 Subject: [PATCH] =?UTF-8?q?Detox:=20Android=20fix=20MM-T4728=5F2=20-=20sho?= =?UTF-8?q?uld=20match=20elements=20on=20channel=20list=E2=80=A6=20(#7156)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Detox: Android fix MM-T4728_1 - should match elements on channel list screen * Address comments --------- Co-authored-by: Mattermost Build --- detox/e2e/test/channels/channel_list.e2e.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/detox/e2e/test/channels/channel_list.e2e.ts b/detox/e2e/test/channels/channel_list.e2e.ts index 21dfcd84c1..e1bc4ef74a 100644 --- a/detox/e2e/test/channels/channel_list.e2e.ts +++ b/detox/e2e/test/channels/channel_list.e2e.ts @@ -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();