<commit_before>package controllers.s7_employment

import play.api.test.TestBrowser
import controllers.ClaimScenarioFactory
import utils.pageobjects.s2_about_you.G3ClaimDatePage
import utils.pageobjects.TestData
import utils.pageobjects.s3_your_partner.G1YourPartnerPersonalDetailsPage

trait AboutYouAndYourPartner {

  def aboutYouAndPartner(browser: TestBrowser) = {
    val claimDate = ClaimScenarioFactory.s2AboutYouWithTimeOutside()
    val pageClaimDate = new G3ClaimDatePage(browser)
    pageClaimDate goToThePage()
    pageClaimDate fillPageWith claimDate

    val nationality = pageClaimDate.submitPage(throwException = true)
    nationality fillPageWith claimDate

    val otherEAAStateOrSwitzerland = nationality.submitPage(throwException = true)
    otherEAAStateOrSwitzerland fillPageWith claimDate

    val pageMoreAboutYou = otherEAAStateOrSwitzerland.submitPage(throwException = true)
    pageMoreAboutYou fillPageWith claimDate
    pageMoreAboutYou.submitPage(throwException = true)


    val claimAboutYourPartner = ClaimScenarioFactory.s3YourPartnerNotThePersonYouCareFor

    val pageAboutYourPartner = new G1YourPartnerPersonalDetailsPage(browser)
    pageAboutYourPartner goToThePage()
    pageAboutYourPartner fillPageWith claimAboutYourPartner
    pageAboutYourPartner.submitPage(throwException = true)
  }
}<commit_msg>habres - fix G10ChildcareExpensesIntegrationSpec failing test<commit_after>package controllers.s7_employment

import play.api.test.TestBrowser
import controllers.ClaimScenarioFactory
import utils.pageobjects.s2_about_you.G3ClaimDatePage
import utils.pageobjects.TestData
import utils.pageobjects.s3_your_partner.G1YourPartnerPersonalDetailsPage

trait AboutYouAndYourPartner {

  def aboutYouAndPartner(browser: TestBrowser) = {
    val claimDate = ClaimScenarioFactory.s2AboutYouWithTimeOutside()
    val pageClaimDate = new G3ClaimDatePage(browser)
    pageClaimDate goToThePage()
    pageClaimDate fillPageWith claimDate

    val nationality = pageClaimDate.submitPage(throwException = true)
    nationality fillPageWith claimDate
    
    val abroadForMoreThan52Weeks = nationality.submitPage(throwException = true)
    abroadForMoreThan52Weeks fillPageWith claimDate

    val otherEAAStateOrSwitzerland = abroadForMoreThan52Weeks.submitPage(throwException = true)
    otherEAAStateOrSwitzerland fillPageWith claimDate

    val pageMoreAboutYou = otherEAAStateOrSwitzerland.submitPage(throwException = true)
    pageMoreAboutYou fillPageWith claimDate
    pageMoreAboutYou.submitPage(throwException = true)


    val claimAboutYourPartner = ClaimScenarioFactory.s3YourPartnerNotThePersonYouCareFor

    val pageAboutYourPartner = new G1YourPartnerPersonalDetailsPage(browser)
    pageAboutYourPartner goToThePage()
    pageAboutYourPartner fillPageWith claimAboutYourPartner
    pageAboutYourPartner.submitPage(throwException = true)
  }
}
{'fraction_non_alphanumeric': 0.0457222029788708, 'fraction_numerical': 0.009005888465535157, 'mean_word_length': 6.443298969072165, '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': '5394832', 'n_tokens_mistral': 840, 'n_tokens_neox': 807, 'n_words': 143}