<commit_before>import { E2EGlobal } from './helpers/E2EGlobal'
import { E2EApp } from './helpers/E2EApp'
import { E2EUser } from './helpers/E2EUser'


describe('@watch User Profile/Password editing', function () {

    const waitUntilTimeout = 10000;

    before("reload page and reset app", function () {
        E2EApp.resetMyApp(true);
        E2EApp.launchApp();
    });

    beforeEach("goto start page and make sure test user is logged in", function () {
        E2EApp.gotoStartPage();
        expect(E2EApp.isLoggedIn()).to.be.true;
    });


    it('Buttons Change Password and Edit Profile are not visible for an LDAP user', function () {
        E2EApp.logoutUser();
        expect(E2EApp.isLoggedIn()).to.be.false;

        E2EApp.loginLdapUserWithCredentials('ldapUser1', 'ldapPwd1', false);
        expect(E2EApp.isLoggedIn()).to.be.true;

        if (E2EApp.isLoggedIn()) {
            browser.click('#navbar-usermenu');
            browser.waitUntil(_ => !browser.isVisible('#navbar-dlgChangedPassword'));
            expect(browser.isVisible('#navbar-dlgEditProfile')).to.be.false;
        }<commit_msg>Remove @watch tag from user tests<commit_after>import { E2EGlobal } from './helpers/E2EGlobal'
import { E2EApp } from './helpers/E2EApp'
import { E2EUser } from './helpers/E2EUser'


describe('User Profile/Password editing', function () {

    const waitUntilTimeout = 10000;

    before("reload page and reset app", function () {
        E2EApp.resetMyApp(true);
        E2EApp.launchApp();
    });

    beforeEach("goto start page and make sure test user is logged in", function () {
        E2EApp.gotoStartPage();
        expect(E2EApp.isLoggedIn()).to.be.true;
    });


    it('Buttons Change Password and Edit Profile are not visible for an LDAP user', function () {
        E2EApp.logoutUser();
        expect(E2EApp.isLoggedIn()).to.be.false;

        E2EApp.loginLdapUserWithCredentials('ldapUser1', 'ldapPwd1', false);
        expect(E2EApp.isLoggedIn()).to.be.true;

        if (E2EApp.isLoggedIn()) {
            browser.click('#navbar-usermenu');
            browser.waitUntil(_ => !browser.isVisible('#navbar-dlgChangedPassword'));
            expect(browser.isVisible('#navbar-dlgEditProfile')).to.be.false;
        }
{'fraction_non_alphanumeric': 0.13936972924988902, 'fraction_numerical': 0.019529516200621395, 'mean_word_length': 3.0759493670886076, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '91365', 'n_tokens_mistral': 741, 'n_tokens_neox': 715, 'n_words': 140}