mattermost-mobile/detox/e2e/test/smoke_test/logout.e2e.js
Joseph Baylon cf7731e30f
[MM-30697, MM-30699] Detox/E2E: Add e2e for MM-T3273 and MM-T3228 (#5146)
* [MM-30697, MM-30699] Detox/E2E: Add e2e for MM-T3273 and MM-T3228

* Rename test ids
2021-02-10 13:52:54 -08:00

30 lines
1,022 B
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 {SettingsSidebar} from '@support/ui/component';
import {
ChannelScreen,
SelectServerScreen,
} from '@support/ui/screen';
import {Setup} from '@support/server_api';
describe('Logout', () => {
beforeAll(async () => {
const {user} = await Setup.apiInit();
// # Open channel screen
await ChannelScreen.open(user);
});
it('MM-T3273 should be able to log out', async () => {
await ChannelScreen.openSettingsSidebar();
await SettingsSidebar.tapLogoutAction();
await SelectServerScreen.toBeVisible();
});
});