29 lines
686 B
Ruby
29 lines
686 B
Ruby
require 'spec_helper'
|
|
|
|
describe "Gear Wizard", :js => true, :type => :feature, :capybara_feature => true, :slow => true do
|
|
|
|
subject { page }
|
|
|
|
let(:user) { FactoryGirl.create(:user) }
|
|
|
|
before(:each) do
|
|
LatencyTester.delete_all
|
|
|
|
end
|
|
|
|
it "success path" do
|
|
FactoryGirl.create(:latency_tester)
|
|
fast_signin user, '/client#/account/audio'
|
|
find("div.account-audio a[data-purpose='add-profile']").trigger(:click)
|
|
walk_gear_wizard
|
|
|
|
# should see prompt afterwards about joining a test session
|
|
find('h1', text: 'join test session')
|
|
find('.join-test-session').trigger(:click)
|
|
|
|
# and should now be in session
|
|
find('h2', text: 'my tracks')
|
|
end
|
|
end
|
|
|