<commit_before>﻿import login = require("../Helpers/LoginHelper");
import ItSystemEditPo = require("../PageObjects/it-system/ItSystemOverview.po");

describe("Regular user tests", () => {

    var loginHelper = new login();
    var pageObject = new ItSystemEditPo(); 
    var headerButtons = pageObject.kendoToolbarWrapper.headerButtons();
    var columnHeaders = pageObject.kendoToolbarWrapper.columnHeaders();
    var columnObject = pageObject.kendoToolbarWrapper.columnObjects();

    beforeAll(() => {
        loginHelper.loginAsRegularUser();
        browser.waitForAngular();
    });

    beforeEach(() => {
        pageObject.getPage();
        browser.waitForAngular();
    });

    it("Apply and delete filter buttons are disabled", () => {       
        expect(headerButtons.useFilter.getAttribute("disabled")).toEqual("true");
        expect(headerButtons.deleteFilter.getAttribute("disabled")).toEqual("true");
    });

    it("IT system can be opened", () => {
        browser.wait(protractor.ExpectedConditions.visibilityOf(columnObject.systemName.first()));

        columnObject.systemName.first().click();

        expect(browser.getCurrentUrl()).toContain("#/system/usage/");
    });


});<commit_msg>Removed last test that depended on pre-configuration of database<commit_after>﻿import login = require("../Helpers/LoginHelper");
import ItSystemEditPo = require("../PageObjects/it-system/ItSystemOverview.po");

describe("Regular user tests", () => {

    var loginHelper = new login();
    var pageObject = new ItSystemEditPo(); 
    var headerButtons = pageObject.kendoToolbarWrapper.headerButtons();
    var columnHeaders = pageObject.kendoToolbarWrapper.columnHeaders();
    var columnObject = pageObject.kendoToolbarWrapper.columnObjects();

    beforeAll(() => {
        loginHelper.loginAsRegularUser();
        browser.waitForAngular();
    });

    beforeEach(() => {
        pageObject.getPage();
        browser.waitForAngular();
    });

    it("Apply and delete filter buttons are disabled", () => {       
        expect(headerButtons.useFilter.getAttribute("disabled")).toEqual("true");
        expect(headerButtons.deleteFilter.getAttribute("disabled")).toEqual("true");
    });

});
{'fraction_non_alphanumeric': 0.14704555705908887, 'fraction_numerical': 0.0, 'mean_word_length': 3.832244008714597, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '6540160', 'n_tokens_mistral': 592, 'n_tokens_neox': 591, 'n_words': 98}