<commit_before>require "spec_helper"

describe "Project dataset list", reset: false do
  before(:all) do
    Capybara.reset_sessions!
    load_page :search
  end

  before(:each) do
    first_dataset_result.click_link "Add dataset to the current project"
    nth_dataset_result(10).click_link "Add dataset to the current project"

    dataset_results.click_link "View Project"
  end

  after(:each) do
    reset_overlay
    reset_project
    reset_visible_datasets
  end

  it "displays datasets that have been added to the project" do
    expect(project_overview).to have_css('.panel-list-item', count: 2)
  end

  it 'hides the "Browse Datasets" pane' do<commit_msg>Fix real requests being made in CI<commit_after>require "spec_helper"

describe "Project dataset list", reset: true do

  before(:each) do
    load_page :search
    first_dataset_result.click_link "Add dataset to the current project"
    nth_dataset_result(10).click_link "Add dataset to the current project"

    dataset_results.click_link "View Project"
  end

  it "displays datasets that have been added to the project" do
    expect(project_overview).to have_css('.panel-list-item', count: 2)
  end

  it 'hides the "Browse Datasets" pane' do
{'fraction_non_alphanumeric': 0.0757201646090535, 'fraction_numerical': 0.0049382716049382715, 'mean_word_length': 4.218884120171674, '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': '3429413', 'n_tokens_mistral': 390, 'n_tokens_neox': 369, 'n_words': 123}