<commit_before>const awsCredentialsPageCommands = {
  enterAwsCredentials(region) {
    const regionOption = `select#awsRegion option[value=${region}]`;
    return this
      .setValue('@awsAccessKey', process.env.AWS_ACCESS_KEY_ID)
      .setValue('@secretAccesskey', process.env.AWS_SECRET_ACCESS_KEY)
      .waitForElementPresent(regionOption, 60000)
      .click(regionOption)
      .click('@nextStep');
  },
};

module.exports = {
  url: '',
  commands: [awsCredentialsPageCommands],
  elements: {
    awsAccessKey: {
      selector: 'input#accessKeyId',
    },
    secretAccesskey: {
      selector: 'input#secretAccessKey',
    },
    nextStep: {
      selector: '//*[text()[contains(.,"Next Step")]]',
      locateStrategy: 'xpath',
    },
  },
};<commit_msg>frontend/tests: Clean up AWS Credentials page tests and add assertions<commit_after>const awsCredentialsPageCommands = {
  enterAwsCredentials(region) {
    const regionOption = `select#awsRegion option[value=${region}]`;
    this
      .setField('@awsAccessKey', process.env.AWS_ACCESS_KEY_ID)
      .setField('@secretAccesskey', process.env.AWS_SECRET_ACCESS_KEY)
      .waitForElementPresent(regionOption, 60000)
      .click(regionOption)
      .expect.element(regionOption).to.be.selected;
    return this.click('@nextStep');
  },
};

module.exports = {
  url: '',
  commands: [awsCredentialsPageCommands],
  elements: {
    awsAccessKey: {
      selector: 'input#accessKeyId',
    },
    secretAccesskey: {
      selector: 'input#secretAccessKey',
    },
    nextStep: {
      selector: '//*[text()[contains(.,"Next Step")]]',
      locateStrategy: 'xpath',
    },
  },
};
{'fraction_non_alphanumeric': 0.14832826747720365, 'fraction_numerical': 0.0060790273556231, 'mean_word_length': 3.7435158501440924, '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': '5896995', 'n_tokens_mistral': 530, 'n_tokens_neox': 535, 'n_words': 78}