* Add linter rules for import order and type member delimiters * Remove unneeded group * Group all app/* imports before the internal imports * Move app/ imports before parent imports * Separate @node_modules imports into a different group * Substitute app paths by aliases * Fix @node_modules import order and add test related modules * Add aliases for types and test, and group import types
30 lines
1,022 B
JavaScript
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 {Setup} from '@support/server_api';
|
|
import {SettingsSidebar} from '@support/ui/component';
|
|
import {
|
|
ChannelScreen,
|
|
SelectServerScreen,
|
|
} from '@support/ui/screen';
|
|
|
|
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();
|
|
});
|
|
});
|