<commit_before>package geb.pages.de.iteratec.osm.measurement.schedule.job

import geb.pages.de.iteratec.osm.I18nGebPage

class JobListPage extends I18nGebPage {

    static url = getUrl("/job/index")

    static at = {
        title == "Jobs"
        $("li", class:"controller active").text() == getI18nMessage("de.iteratec.isr.managementDashboard")
    }


    static content = {
        //Filter
        filterTextbox{$("#filterInput")}
        filterByNameButton{$("#filterByName").parent()}
        filterByJobGroupButton{$("#filterByJobGroup").parent()}
        filterByLocationButton{$("#filterByLocation").parent()}
        filterByTagsButton{$("#filterByTags").parent()}
        filterByScriptButton{$("#filterByScript").parent()}
        filterByBrowserButton{$("#filterByBrowser").parent()}
        //Checkboxes
        showOnlyCheckedJobsButton{$("#filterCheckedJobs").parent()}
        showOnlyHighlightedJobsButton{$("#filterHighlightedJobs").parent()}
        showOnlyRunningJobsButton{$("#filterRunningJobs").parent()}
        showOnlyActiveJobsButton{$("#filterActiveJobs").parent()}
        checkAll{$("#checkAll")[0]}
        //Buttons
        actionMenuButton{$("#actionForSelected")}
        activateButton{$("input",name:"_action_activate")}
        deactivateButton{$("input",name:"_action_deactivate")}
        executeNowButton{$("input",name:"_action_execute")}
        createJobButton{$("a",href:"/job/create")}
        //"Data"
        inactiveJobs{$(".jobName.inactiveJob")}
        activeJobs{$(".jobName").not(".inactiveJob")}
        allJobs{$(".jobName")}
        invisibleRows(required:false){$("tr.hidden")}
    }

    def enableFilterByButtons(List enabledButtons) {
        def allButtons = [filterByJobGroupButton, filterByLocationButton, filterByTagsButton, filterByScriptButton,
                          filterByBrowserButton, filterByNameButton]
        allButtons.each {
            changeButton(it, it in enabledButtons)<commit_msg>Fixed geb tests for new job list drop down menu<commit_after>package geb.pages.de.iteratec.osm.measurement.schedule.job

import geb.pages.de.iteratec.osm.I18nGebPage

class JobListPage extends I18nGebPage {

    static url = getUrl("/job/index")

    static at = {
        title == "Jobs"
        $("li", class:"controller active").text() == getI18nMessage("de.iteratec.isr.managementDashboard")
    }


    static content = {
        //Filter
        filterTextbox{$("#filterInput")}
        filterByNameButton{$("#filterByName").parent()}
        filterByJobGroupButton{$("#filterByJobGroup").parent()}
        filterByLocationButton{$("#filterByLocation").parent()}
        filterByTagsButton{$("#filterByTags").parent()}
        filterByScriptButton{$("#filterByScript").parent()}
        filterByBrowserButton{$("#filterByBrowser").parent()}
        //Checkboxes
        showOnlyCheckedJobsButton{$("#filterCheckedJobs").parent()}
        showOnlyHighlightedJobsButton{$("#filterHighlightedJobs").parent()}
        showOnlyRunningJobsButton{$("#filterRunningJobs").parent()}
        showOnlyActiveJobsButton{$("#filterActiveJobs").parent()}
        checkAll{$("#checkAll")[0]}
        //Buttons
        actionMenuButton{$("#actionForSelected")}
        activateButton{$("button",name:"_action_activate")}
        deactivateButton{$("button",name:"_action_deactivate")}
        executeNowButton{$("button",name:"_action_execute")}
        createJobButton{$("a",href:"/job/create")}
        //"Data"
        inactiveJobs{$(".jobName.inactiveJob")}
        activeJobs{$(".jobName").not(".inactiveJob")}
        allJobs{$(".jobName")}
        invisibleRows(required:false){$("tr.hidden")}
    }

    def enableFilterByButtons(List enabledButtons) {
        def allButtons = [filterByJobGroupButton, filterByLocationButton, filterByTagsButton, filterByScriptButton,
                          filterByBrowserButton, filterByNameButton]
        allButtons.each {
            changeButton(it, it in enabledButtons)
{'fraction_non_alphanumeric': 0.15257214554579673, 'fraction_numerical': 0.0035131744040150566, 'mean_word_length': 3.6784037558685445, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4446779', 'n_tokens_mistral': 1116, 'n_tokens_neox': 1130, 'n_words': 132}