mattermost-mobile/detox/e2e/test/messaging/recent_mentions.e2e.js
Joseph Baylon 9f36d440b2
MM-35678 Detox/E2E: Add e2e for hashtags, empty mentions and reactions, jump to search (#5481)
* MM-35678 Detox/E2E: Add e2e for hashtags, empty mentions, empty reactions, jump to search

* Add missing verification

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-06-24 10:46:25 -07:00

40 lines
1.4 KiB
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
// *******************************************************************
// - [#] indicates a test step (e.g. # Go to a screen)
// - [*] indicates an assertion (e.g. * Check the title)
// - Use element testID when selecting an element. Create one if none.
// *******************************************************************
import {
ChannelScreen,
RecentMentionsScreen,
} from '@support/ui/screen';
import {Setup} from '@support/server_api';
describe('Recent Mentions', () => {
beforeAll(async () => {
const {user} = await Setup.apiInit();
// # Open channel screen
await ChannelScreen.open(user);
});
afterAll(async () => {
await ChannelScreen.logout();
});
it('MM-T3372 should be able display empty recent mentions', async () => {
// # Open recent mentions screen
await ChannelScreen.openSettingsSidebar();
await RecentMentionsScreen.open();
// * Verify empty recent mentions
await expect(element(by.text('No Mentions yet'))).toBeVisible();
await expect(element(by.text('Messages where someone mentions you or includes your trigger words are saved here.'))).toBeVisible();
// # Go back to channel
await RecentMentionsScreen.close();
});
});