<commit_before>require 'rails_helper'

feature 'Meetings' do
  scenario "Index page don't show past events by default", :js do
    create(:meeting, title: "Meeting 1")
    create(:meeting, title: "Meeting 2", held_at: 1.week.ago)
    create(:meeting, title: "Meeting 3")

    user = create(:user)
    login_as(user)

    visit meetings_path

    expect(page).to have_content("Meeting 1")
    expect(page).to have_no_content("Meeting 2")
    expect(page).to have_content("Meeting 3")
  end
end<commit_msg>Fix random meetings test<commit_after>require 'rails_helper'

feature 'Meetings' do
  scenario "Index page don't show past events by default", :js do
    create(:meeting, title: "Meeting 1")
    create(:meeting, title: "Meeting 2", held_at: 1.week.ago)
    create(:meeting, title: "Meeting 3")

    user = create(:user)
    login_as(user)

    visit meetings_path

    expect(page).to have_selector('.meeting-title', text: 'Meeting 1')
    expect(page).to_not have_selector('.meeting-title', text: 'Meeting 2')
    expect(page).to have_selector('.meeting-title', text: 'Meeting 3')
  end
end
{'fraction_non_alphanumeric': 0.13333333333333333, 'fraction_numerical': 0.012785388127853882, 'mean_word_length': 4.320388349514563, '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': '6588630', 'n_tokens_mistral': 384, 'n_tokens_neox': 359, 'n_words': 100}