mattermost/e2e-tests/cypress/tests/support/env.ts
Angel Mendez 89f04af631
refactor: convert channel_moderation files to ts (#28482)
* refactor: convert channel_moderation files to ts

- convert js files to ts
- update data types accordingly
- fix lint issues

Fixes: #21332

* fix: update argument type for visitChannel

- update type
- fix types issues

* refactor: change return type for getAdminAccount()

- change return type to getAdminAccount as UserProfile
2024-10-08 20:12:57 +08:00

25 lines
613 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {UserProfile} from '@mattermost/types/users';
export interface User {
username: string;
password: string;
email: string;
}
export function getAdminAccount() {
return {
username: Cypress.env('adminUsername'),
password: Cypress.env('adminPassword'),
email: Cypress.env('adminEmail'),
} as UserProfile;
}
export function getDBConfig() {
return {
client: Cypress.env('dbClient'),
connection: Cypress.env('dbConnection'),
};
}