<commit_before>package geb.pages.de.iteratec.osm.csi

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

class CsTargetGraphCreatePage extends I18nGebPage{
    static url = getUrl("/csTargetGraph/create")

    static at = {
        title == getI18nMessage("default.create.label", [CsTargetGraph.simpleName])
    }

    static content = {
        createCsTargetGraphButton (to: [CsTargetGraphCreatePage, CsTargetGraphShowPage]) { $("#create") }

        labelTextField { $("#label") }
        descriptionTextField { $("#description") }

        errorMessageBox { $("div", class: "alert alert-danger") }
    }

    def selectPointTwo () {
        $("#pointTwo").find("option")[1].click()
    }
}<commit_msg>[IT-1681] Geb Test: Don't click on non-existent element<commit_after>package geb.pages.de.iteratec.osm.csi

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

class CsTargetGraphCreatePage extends I18nGebPage{
    static url = getUrl("/csTargetGraph/create")

    static at = {
        title == getI18nMessage("default.create.label", [CsTargetGraph.simpleName])
    }

    static content = {
        createCsTargetGraphButton (to: [CsTargetGraphCreatePage, CsTargetGraphShowPage]) { $("#create") }

        labelTextField { $("#label") }
        descriptionTextField { $("#description") }

        errorMessageBox { $("div", class: "alert alert-danger") }
    }

    def selectPointTwo () {
        $("#pointTwo\\.id").find("option")[1].click()
    }
}
{'fraction_non_alphanumeric': 0.144538914323087, 'fraction_numerical': 0.011772400261608895, 'mean_word_length': 3.5671641791044775, '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': '4234705', 'n_tokens_mistral': 510, 'n_tokens_neox': 470, 'n_words': 81}