<commit_before>require File.expand_path(File.dirname(__FILE__) + '/common')

describe "chat" do
  it_should_behave_like "in-process server selenium tests"

  it "should render on the page correctly" do
    course_with_teacher_logged_in
    PluginSetting.create!(:name => "tinychat", :settings => {})
    get "/courses/#{@course.id}/chat"
    f(".tinychat_embed iframe").should be_displayed
  end
end
<commit_msg>spec: chat_spec intermittent failure<commit_after>require File.expand_path(File.dirname(__FILE__) + '/common')

describe "chat" do
  it_should_behave_like "in-process server selenium tests"

  it "should render on the page correctly" do
    course_with_teacher_logged_in
    PluginSetting.create!(:name => "tinychat", :settings => {})
    get "/courses/#{@course.id}/chat"
    keep_trying_until { f(".tinychat_embed iframe").should be_displayed }
  end
end

{'fraction_non_alphanumeric': 0.12082853855005754, 'fraction_numerical': 0.0, 'mean_word_length': 5.0, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6244184', 'n_tokens_mistral': 289, 'n_tokens_neox': 280, 'n_words': 64}