{"size": 937, "ext": "js", "max_stars_repo_path": "e2e/cypress/integration/system_console/authentication/password_settings_spec.js", "max_stars_repo_name": "macopedia/mattermost-webapp", "max_stars_repo_stars_event_min_datetime": "2022-03-17T02:31:36.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-17T02:31:36.000Z", "max_issues_repo_path": "e2e/cypress/integration/system_console/authentication/password_settings_spec.js", "max_issues_repo_name": "zhizhuomsj/mattermost-webapp", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "e2e/cypress/integration/system_console/authentication/password_settings_spec.js", "max_forks_repo_name": "zhizhuomsj/mattermost-webapp", "max_forks_repo_forks_event_min_datetime": "2022-01-25T19:26:22.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-25T19:26:22.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 37.48, "max_line_length": 119, "alphanum_fraction": 0.5282817503}
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.

// ***************************************************************
// - [#] 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.
// ***************************************************************

// Stage: @prod
// Group: @not_cloud @system_console

describe('Password settings', () => {
    it('MM-T4679 - Should NOT show MaximumLoginAttempts when ExperimentalSettings.RestrictSystemAdmin is true', () => {
        cy.apiUpdateConfig({
            ExperimentalSettings: {
                RestrictSystemAdmin: true,
            },
        }).then(() => {
            cy.visit('/admin_console/authentication/password');
            cy.get('#maximumLoginAttempts').should('not.exist');
        });
    });
});
