<commit_before>import geb.spock.GebReportingSpec
import pages.app.DashboardPage
import pages.app.NotificationsPage
import pages.app.SettingsPage
import pages.app.AccountActivityPage
import pages.app.OpportunitiesPage
import pages.app.FuelSuppliersPage
//import pages.app.AdministrationPage
import pages.external.Accessability
import pages.external.Copyright
import pages.external.Disclaimer
import pages.external.Privacy
import spock.lang.Unroll

class FlowSpecs extends GebReportingSpec {

    @Unroll
    def "Navigate Page from: #startPage, click Link: #clickLink, Assert Page: #assertPage"(){
        when:
        to startPage

        and:
        (1..clickCount).each{
            $("a", id:"$clickLink").click()
        }

        then:
        at assertPage

        where:
        startPage           | clickLink                     | clickCount    | timeoutSeconds    || assertPage
        //DashboardPage       | "navbar-notifications"      | 1             | 5                 || NotificationsPage
        //SettingsPage        | "navbar-dashboard"          | 1             | 5                 || DashboardPage
        //NotificationsPage   | "navbar-settings"           | 1             | 5                 || SettingsPage
        SettingsPage          | "navbar-opportunities       | 1             | 5                 || OpportunitiesPage
        //Test Externally Linked Pages
        SettingsPage      | "footer-about-copyright"        | 1             | 3                 || Copyright
        SettingsPage      | "footer-about-disclaimer"       | 1             | 3                 || Disclaimer
        SettingsPage      | "footer-about-privacy"          | 1             | 3                 || Privacy
        SettingsPage      | "footer-about-accessibility"    | 1             | 3                 || Accessability
    }
}<commit_msg>Update FlowSpecs.groovy<commit_after>import geb.spock.GebReportingSpec
import pages.app.DashboardPage
import pages.app.NotificationsPage
import pages.app.SettingsPage
import pages.app.AccountActivityPage
import pages.app.FuelSuppliersPage
//import pages.app.AdministrationPage
import pages.external.Accessability
import pages.external.Copyright
import pages.external.Disclaimer
import pages.external.Privacy
import spock.lang.Unroll

class FlowSpecs extends GebReportingSpec {

    @Unroll
    def "Navigate Page from: #startPage, click Link: #clickLink, Assert Page: #assertPage"(){
        when:
        to startPage

        and:
        (1..clickCount).each{
            $("a", id:"$clickLink").click()
        }

        then:
        at assertPage

        where:
        startPage           | clickLink                     | clickCount    | timeoutSeconds    || assertPage
        //DashboardPage       | "navbar-notifications"      | 1             | 5                 || NotificationsPage
        //SettingsPage        | "navbar-dashboard"          | 1             | 5                 || DashboardPage
        //NotificationsPage   | "navbar-settings"           | 1             | 5                 || SettingsPage
        //Test Externally Linked Pages
        SettingsPage        | "footer-about-copyright"        | 1             | 3                 || Copyright
        //SettingsPage      | "footer-about-disclaimer"       | 1             | 3                 || Disclaimer
        //SettingsPage      | "footer-about-privacy"          | 1             | 3                 || Privacy
        //SettingsPage      | "footer-about-accessibility"    | 1             | 3                 || Accessability
    }
}
{'fraction_non_alphanumeric': 0.08473625140291807, 'fraction_numerical': 0.008978675645342313, 'mean_word_length': 1.5537249283667622, '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': 28, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1783574', 'n_tokens_mistral': 918, 'n_tokens_neox': 870, 'n_words': 198}