<commit_before>require 'rails_helper'

feature 'create notebook' do
  before do
    sign_in
  end
  scenario 'with valid name', :js => true do
    notebook = build(:notebook)
    visit '/'
    click_link('new-notebook')

    fill_in 'notebook_name', with: notebook.name

    expect(find('#left-menu').find('#notebook-list')).to have_content(notebook.name)
  end
end<commit_msg>Fix links and add sleep for modal animation<commit_after>require 'rails_helper'

feature 'create notebook' do
  before do
    create_user_and_sign_in
  end
  scenario 'with valid name', :js => true do
    notebook = build(:notebook)
    visit '/'
    click_button('new-notebook')

    sleep 2

    fill_in 'notebook_name', with: notebook.name

    click_button('Create notebook')

    expect(find('#left-menu').find('#notebook-list')).to have_content(notebook.name)
  end
end
{'fraction_non_alphanumeric': 0.11971830985915492, 'fraction_numerical': 0.0011737089201877935, 'mean_word_length': 4.017647058823529, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4995832', 'n_tokens_mistral': 276, 'n_tokens_neox': 272, 'n_words': 68}