From dbf45b17cab08ab9bec3ce1b23a180d9909b5e0c Mon Sep 17 00:00:00 2001 From: Saturnino Abril Date: Thu, 15 Apr 2021 03:17:09 +0800 Subject: [PATCH] add mfa metadata to specs accordingly (#7896) --- .../accessibility_account_settings_spec.js | 2 +- .../integration/auth_sso/authentication_2_spec.js | 4 ++-- .../integration/bot_accounts/bot_api_spec.js | 2 +- .../guest_accounts/guest_identification_spec.js | 2 +- .../system_console_guest_access_ui_spec.js | 2 +- .../signin_authentication/authentication_spec.js | 14 +++++++------- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/e2e/cypress/integration/accessibility/accessibility_account_settings_spec.js b/e2e/cypress/integration/accessibility/accessibility_account_settings_spec.js index d17cc08985a4..6208ec8ccec1 100644 --- a/e2e/cypress/integration/accessibility/accessibility_account_settings_spec.js +++ b/e2e/cypress/integration/accessibility/accessibility_account_settings_spec.js @@ -8,7 +8,7 @@ // *************************************************************** // Stage: @prod -// Group: @accessibility +// Group: @accessibility @mfa import * as TIMEOUTS from '../../fixtures/timeouts'; import accountSettingSections from '../../fixtures/account_setting_sections.json'; diff --git a/e2e/cypress/integration/auth_sso/authentication_2_spec.js b/e2e/cypress/integration/auth_sso/authentication_2_spec.js index 491848c3d567..382605c40171 100644 --- a/e2e/cypress/integration/auth_sso/authentication_2_spec.js +++ b/e2e/cypress/integration/auth_sso/authentication_2_spec.js @@ -8,7 +8,7 @@ // *************************************************************** // Stage: @prod -// Group: @system_console @authentication +// Group: @system_console @authentication @mfa import * as TIMEOUTS from '../../fixtures/timeouts'; @@ -71,7 +71,7 @@ describe('Authentication', () => { cy.findByText('Create Account').click(); - // * Assert that we are not shown a MFA scren and instead a Teams You Can join page + // * Assert that we are not shown an MFA screen and instead a Teams You Can join page cy.findByText('Teams you can join:', {timeout: TIMEOUTS.ONE_MIN}).should('be.visible'); }); diff --git a/e2e/cypress/integration/bot_accounts/bot_api_spec.js b/e2e/cypress/integration/bot_accounts/bot_api_spec.js index 9bf706fa6c39..6a19f251d60e 100644 --- a/e2e/cypress/integration/bot_accounts/bot_api_spec.js +++ b/e2e/cypress/integration/bot_accounts/bot_api_spec.js @@ -8,7 +8,7 @@ // *************************************************************** // Stage: @prod -// Group: @bot_accounts +// Group: @bot_accounts @mfa import * as TIMEOUTS from '../../fixtures/timeouts'; diff --git a/e2e/cypress/integration/enterprise/guest_accounts/guest_identification_spec.js b/e2e/cypress/integration/enterprise/guest_accounts/guest_identification_spec.js index f97a9b670bfa..136925192860 100644 --- a/e2e/cypress/integration/enterprise/guest_accounts/guest_identification_spec.js +++ b/e2e/cypress/integration/enterprise/guest_accounts/guest_identification_spec.js @@ -7,7 +7,7 @@ // - Use element ID when selecting an element. Create one if none. // *************************************************************** -// Group: @not_cloud @enterprise @guest_account +// Group: @not_cloud @enterprise @guest_account @mfa /** * Note: This test requires Enterprise license to be uploaded diff --git a/e2e/cypress/integration/enterprise/guest_accounts/system_console_guest_access_ui_spec.js b/e2e/cypress/integration/enterprise/guest_accounts/system_console_guest_access_ui_spec.js index a9ad0dfe2ebc..813de76f8000 100644 --- a/e2e/cypress/integration/enterprise/guest_accounts/system_console_guest_access_ui_spec.js +++ b/e2e/cypress/integration/enterprise/guest_accounts/system_console_guest_access_ui_spec.js @@ -8,7 +8,7 @@ // *************************************************************** // Stage: @prod -// Group: @enterprise @guest_account +// Group: @enterprise @guest_account @mfa /** * Note: This test requires Enterprise license to be uploaded diff --git a/e2e/cypress/integration/signin_authentication/authentication_spec.js b/e2e/cypress/integration/signin_authentication/authentication_spec.js index 3bc2affc9c84..3a3d64c0d3ba 100644 --- a/e2e/cypress/integration/signin_authentication/authentication_spec.js +++ b/e2e/cypress/integration/signin_authentication/authentication_spec.js @@ -1,19 +1,19 @@ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. -import {getEmailUrl} from '../../utils'; -import {getAdminAccount} from '../../support/env'; -import timeouts from '../../fixtures/timeouts'; - -const authenticator = require('authenticator'); - // *************************************************************** // - [#] indicates a test step (e.g. # Go to a page) // - [*] indicates an assertion (e.g. * Check the title) // - Use element ID when selecting an element. Create one if none. // *************************************************************** -// Group: @signin_authentication +// Group: @signin_authentication @mfa + +import {getEmailUrl} from '../../utils'; +import {getAdminAccount} from '../../support/env'; +import timeouts from '../../fixtures/timeouts'; + +const authenticator = require('authenticator'); describe('Authentication', () => { let testTeam;