<commit_before>require File.join(File.dirname(__FILE__), 'spec_helper')

describe "Create Sandbox" do
  before(:each) do
    login('edcadmin', 'secret')
  end

  xit "creates sandbox in private workspace" do
    go_to_workspace_page
    create_valid_workspace(:name => "Private Workspace", :shared => false)
    fill_in 'name', :with => "Private Workspace"
    uncheck ("Make this workspace publicly available")
    create_valid_user(:username => "private")
    login('private','secret')
    go_to_workspace_page
    page.should_not have_content ("Private Workspace")
  end

  xit "creates sandbox in public workspace" do
    create_valid_workspace
  end
end
<commit_msg>Adding sandbox test for a private workspace<commit_after>require File.join(File.dirname(__FILE__), 'spec_helper')

describe "Create Sandbox" do
  before(:each) do
    login('edcadmin', 'secret')
  end

  it "creates sandbox in private workspace" do
    go_to_workspace_page
    create_gpdb_instance(:name => "Gillette")
    create_valid_workspace(:name => "Private Workspace", :shared => false)
    #Sandbox
    click_link "Add a sandbox"
    page.execute_script %( $("select[name='instance'").selectmenu("value", "1"); )
    sleep(10)
    #page.mouseDown('div.instance div.select_container span a span.ui-selectmenu-status')
    #page.select(1, 'div.instance div.select_container span a span.ui-selectmenu-status')

    #page.execute_script('.ui-selectmenu-open a:contains(gillette)')
  end

  xit "creates sandbox in public workspace" do
    create_valid_workspace
  end
end

{'fraction_non_alphanumeric': 0.11498708010335917, 'fraction_numerical': 0.002583979328165375, 'mean_word_length': 4.673992673992674, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '7644857', 'n_tokens_mistral': 497, 'n_tokens_neox': 481, 'n_words': 121}