<commit_before>defmodule RetroIdeaRealtimeUpdateTest do
  use RemoteRetro.IntegrationCase, async: false

  # @tag :skip
  test "the immediate appearance of other users submitted' ideas" do
    {:ok, session_one} = Wallaby.start_session()
    {:ok, session_two} = Wallaby.start_session()
    retro_uuid = "93939-ag35kd"

    session_one = visit(session_one, "/retros/" <> retro_uuid)
    |> join_retro_as_user("<NAME>")

    session_two = visit(session_two, "/retros/" <> retro_uuid)
    |> join_retro_as_user("<NAME>")

    ideas_list_text = session_one |> find(".sad.ideas", visible: false) |> text
    refute String.contains?(ideas_list_text, "user stories lack clear business value")

    submit_idea(session_two, %{ category: "sad", body: "user stories lack clear business value" })

    ideas_list_text = session_one |> find(".sad.ideas") |> text
    assert String.contains?(ideas_list_text, "user stories lack clear business value")

    Wallaby.end_session(session_one)
    Wallaby.end_session(session_two)
  end
end<commit_msg>Strip stale comment<commit_after>defmodule RetroIdeaRealtimeUpdateTest do
  use RemoteRetro.IntegrationCase, async: false

  test "the immediate appearance of other users submitted' ideas" do
    {:ok, session_one} = Wallaby.start_session()
    {:ok, session_two} = Wallaby.start_session()
    retro_uuid = "93939-ag35kd"

    session_one = visit(session_one, "/retros/" <> retro_uuid)
    |> join_retro_as_user("<NAME>")

    session_two = visit(session_two, "/retros/" <> retro_uuid)
    |> join_retro_as_user("<NAME>")

    ideas_list_text = session_one |> find(".sad.ideas", visible: false) |> text
    refute String.contains?(ideas_list_text, "user stories lack clear business value")

    submit_idea(session_two, %{ category: "sad", body: "user stories lack clear business value" })

    ideas_list_text = session_one |> find(".sad.ideas") |> text
    assert String.contains?(ideas_list_text, "user stories lack clear business value")

    Wallaby.end_session(session_one)
    Wallaby.end_session(session_two)
  end
end
{'fraction_non_alphanumeric': 0.11984473556525958, 'fraction_numerical': 0.006792819019893256, 'mean_word_length': 4.727777777777778, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 23, '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': '1882085', 'n_tokens_mistral': 695, 'n_tokens_neox': 676, 'n_words': 153}