{"size": 631, "ext": "js", "max_stars_repo_path": "test/end-to-end/pages/screening-questions/has-respondent-address.js", "max_stars_repo_name": "hmcts/div-petitioner-frontend", "max_stars_repo_stars_event_min_datetime": "2018-06-13T10:34:54.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-10T16:19:28.000Z", "max_issues_repo_path": "test/end-to-end/pages/screening-questions/has-respondent-address.js", "max_issues_repo_name": "hmcts/div-petitioner-frontend", "max_issues_repo_issues_event_min_datetime": "2018-03-08T14:52:20.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-08T15:36:22.000Z", "max_forks_repo_path": "test/end-to-end/pages/screening-questions/has-respondent-address.js", "max_forks_repo_name": "hmcts/div-petitioner-frontend", "max_forks_repo_forks_event_min_datetime": "2018-03-07T10:15:56.000Z", "max_forks_repo_forks_event_max_datetime": "2021-04-10T22:33:41.000Z"}
{"max_stars_count": 3, "max_issues_count": 457, "max_forks_count": 12, "avg_line_length": 42.0666666667, "max_line_length": 128, "alphanum_fraction": 0.7717908082}
const contentEn = require('app/steps/screening-questions/has-respondent-address/content.json').resources.en.translation.content;
const contentCy = require('app/steps/screening-questions/has-respondent-address/content.json').resources.cy.translation.content;
const pagePath = '/screening-questions/respondent-address';

function haveRespondentAddress(language = 'en') {
  const respondentAddContent = language === 'en' ? contentEn : contentCy;
  const I = this;

  I.waitInUrl(pagePath);
  I.seeInCurrentUrl(pagePath);
  I.retry(2).click(respondentAddContent.yes);
  I.click('submit');
}

module.exports = { haveRespondentAddress };