refactor: convert auth_sso files to ts (#28349)
- convert js files to ts - update types Fixes #21311
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
54a5ecb721
Коммит
84fba1e1d4
@@ -10,13 +10,14 @@
|
|||||||
// Stage: @prod
|
// Stage: @prod
|
||||||
// Group: @channels @enterprise @system_console @authentication
|
// Group: @channels @enterprise @system_console @authentication
|
||||||
|
|
||||||
|
import {Team} from '@mattermost/types/teams';
|
||||||
import * as TIMEOUTS from '../../../../fixtures/timeouts';
|
import * as TIMEOUTS from '../../../../fixtures/timeouts';
|
||||||
|
|
||||||
import {getRandomId} from '../../../../utils';
|
import {getRandomId} from '../../../../utils';
|
||||||
|
|
||||||
describe('Authentication', () => {
|
describe('Authentication', () => {
|
||||||
const restrictCreationToDomains = 'mattermost.com, test.com';
|
const restrictCreationToDomains = 'mattermost.com, test.com';
|
||||||
let testTeam;
|
let testTeam: Team;
|
||||||
|
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.apiRequireLicense();
|
cy.apiRequireLicense();
|
||||||
@@ -10,14 +10,14 @@
|
|||||||
// Stage: @prod
|
// Stage: @prod
|
||||||
// Group: @channels @enterprise @system_console @authentication @mfa
|
// Group: @channels @enterprise @system_console @authentication @mfa
|
||||||
|
|
||||||
|
import {UserProfile} from '@mattermost/types/users';
|
||||||
|
import * as authenticator from 'authenticator';
|
||||||
import * as TIMEOUTS from '../../../../fixtures/timeouts';
|
import * as TIMEOUTS from '../../../../fixtures/timeouts';
|
||||||
|
|
||||||
const authenticator = require('authenticator');
|
|
||||||
|
|
||||||
describe('Authentication', () => {
|
describe('Authentication', () => {
|
||||||
let mfaSysAdmin;
|
let mfaSysAdmin: UserProfile;
|
||||||
let testUser;
|
let testUser: UserProfile;
|
||||||
let adminMFASecret;
|
let adminMFASecret: string;
|
||||||
|
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.apiRequireLicenseForFeature('MFA');
|
cy.apiRequireLicenseForFeature('MFA');
|
||||||
Ссылка в новой задаче
Block a user