<commit_before>const E2eHelpers = require('../e2e/e2e-helpers');
const Timeouts = require('../e2e/timeouts.js');

module.exports = E2eHelpers.createE2eTest(
  (client) => {
    client
      .url(`${E2eHelpers.baseUrl}/discharge-upgrade-instructions/`);

    E2eHelpers.overrideSmoothScrolling(client);

    // landing page
    client
      .waitForElementVisible('body', Timeouts.normal)
      .waitForElementVisible('.discharge-wizard', Timeouts.slow)
      // do not run 'wcag2a' rules because of open aXe bug https://github.com/dequelabs/axe-core/issues/214
      .axeCheck('.main');

    // questions page
    client
      .click('.usa-button-primary')
      .waitForElementVisible('.dw-questions', Timeouts.normal);

    client
      .setValue('input[name="1_branchOfService"]', '1')
      .click('input[name="1_branchOfService"]')
      .selectDropdown('2_dischargeYear', '2016')
      .setValue('input[name="4_reason"]', '1')
      .click('input[name="4_reason"]')
      .setValue('input[name="6_intention"]', '1')
      .click('input[name="6_intention"]')
      .setValue('input[name="7_courtMartial"]', '1')
      .click('input[name="7_courtMartial"]')
      .setValue('input[name="8_prevApplication"]', '1')
      .click('input[name="8_prevApplication"]')
      .setValue('input[name="9_prevApplicationYear"]', '1')
      .click('input[name="9_prevApplicationYear"]')
      .setValue('input[name="12_priorService"]', '1')
      .click('input[name="12_priorService"]');

    client
      .waitForElementVisible('.review-answers', Timeouts.slow)
      .axeCheck('.main')
      .click('a.usa-button-primary');

    client.pause(Timeouts.verySlow);

    // results page
    client
      .click('a.usa-button-primary')
      .waitForElementVisible('.dw-guidance', Timeouts.verySlow)
      .axeCheck('.main');

    client.end();
  });
<commit_msg>Attempting to fix timeout during E2E tests (#7065)<commit_after>const E2eHelpers = require('../e2e/e2e-helpers');
const Timeouts = require('../e2e/timeouts.js');

module.exports = E2eHelpers.createE2eTest(
  (client) => {
    client
      .url(`${E2eHelpers.baseUrl}/discharge-upgrade-instructions/`);

    E2eHelpers.overrideSmoothScrolling(client);

    // landing page
    client
      .waitForElementVisible('body', Timeouts.normal)
      .waitForElementVisible('.discharge-wizard', Timeouts.slow)
      // do not run 'wcag2a' rules because of open aXe bug https://github.com/dequelabs/axe-core/issues/214
      .axeCheck('.main');

    // questions page
    client
      .click('.usa-button-primary')
      .waitForElementVisible('.dw-questions', Timeouts.normal);

    client
      .setValue('input[name="1_branchOfService"]', '1')
      .click('input[name="1_branchOfService"]')
      .selectDropdown('2_dischargeYear', '2016')
      .setValue('input[name="4_reason"]', '1')
      .click('input[name="4_reason"]')
      .setValue('input[name="6_intention"]', '1')
      .click('input[name="6_intention"]')
      .setValue('input[name="7_courtMartial"]', '1')
      .click('input[name="7_courtMartial"]')
      .setValue('input[name="8_prevApplication"]', '1')
      .click('input[name="8_prevApplication"]')
      .setValue('input[name="9_prevApplicationYear"]', '1')
      .click('input[name="9_prevApplicationYear"]')
      .setValue('input[name="12_priorService"]', '1')
      .click('input[name="12_priorService"]');

    client
      .waitForElementVisible('.review-answers', Timeouts.slow)
      .axeCheck('.main')
      .click('a.usa-button-primary');

    // results page
    client
      .waitForElementVisible('.dw-guidance', Timeouts.slow)
      .axeCheck('.main');

    client.end();
  });

{'fraction_non_alphanumeric': 0.18415300546448088, 'fraction_numerical': 0.023224043715846996, 'mean_word_length': 3.6050314465408806, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '6951574', 'n_tokens_mistral': 1244, 'n_tokens_neox': 1216, 'n_words': 155}