<commit_before>When(/^I filter using the all button$/) do
  @browser.element(class: 'btn', text: 'All').click
  @browser.table(class: 'table').wait_until_present(5)
  take_screenshot('All button')
end

When(/^I filter using the show inactives button$/) do
  @browser.element(class: 'btn', text: 'Show Inactives').click
  @browser.table(class: 'table').wait_until_present(5)
  take_screenshot('Inactives button')
end

When(/^I filter using the direct button$/) do
  @browser.element(class: 'btn', text: 'Direct').click
  @browser.table(class: 'table').wait_until_present(5)
  take_screenshot('Direct button')
end

Then(/^the employee table should show only direct reports$/) do
  expected_supervisor = @user[:first] + ' ' + @user[:last]
  table = @browser.table(class: 'table')
  (1..table.rows.count-1).each_with_index do |i|
    actual_supervisor = table[i][3].text
    expect(actual_supervisor).to eq(expected_supervisor)
  end
end<commit_msg>removed screenshot calls, rubocop fixes<commit_after>When(/^I filter using the all button$/) do
  @browser.element(class: 'btn', text: 'All').click
  @browser.table(class: 'table').wait_until_present(5)
end

When(/^I filter using the show inactives button$/) do
  @browser.element(class: 'btn', text: 'Show Inactives').click
  @browser.table(class: 'table').wait_until_present(5)
end

When(/^I filter using the direct button$/) do
  @browser.element(class: 'btn', text: 'Direct').click
  @browser.table(class: 'table').wait_until_present(5)
end

Then(/^the employee table should show only direct reports$/) do
  expected_supervisor = @user[:first] + ' ' + @user[:last]
  table = @browser.table(class: 'table')
  (1..table.rows.count - 1).each_with_index do |i|
    actual_supervisor = table[i][3].text
    expect(actual_supervisor).to eq(expected_supervisor)
  end
end
{'fraction_non_alphanumeric': 0.15609487038058467, 'fraction_numerical': 0.006618863761720904, 'mean_word_length': 5.320557491289199, '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': '6608938', 'n_tokens_mistral': 612, 'n_tokens_neox': 609, 'n_words': 146}