Sha256: f905adf9fead2250c8ffa74005cb3c003e3b181f3ab3d3368a213cd170654881

Contents?: true

Size: 511 Bytes

Versions: 20

Compression:

Stored size: 511 Bytes

Contents

require 'spec_helper'

describe 'todos app', type: :feature, sauce: true do
  it 'should add a todo and remove it' do
    visit '/todos'

    fill_in 'newtodo', :with => 'Todo 1'
    find('#newtodo').native.send_keys(:return)

    expect(page).to have_content('Todo 1')

    expect(find('#newtodo').value).to eq('')

    click_button 'X'

    expect(page).to_not have_content('Todo 1')

    # Make sure it deleted
    page.driver.browser.navigate.refresh
    expect(page).to_not have_content('Todo 1')
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
volt-0.9.5.pre7 spec/integration/todos_spec.rb
volt-0.9.5.pre6 spec/integration/todos_spec.rb
volt-0.9.5.pre5 spec/integration/todos_spec.rb
volt-0.9.5.pre4 spec/integration/todos_spec.rb
volt-0.9.5.pre3 spec/integration/todos_spec.rb
volt-0.9.5.pre2 spec/integration/todos_spec.rb
volt-0.9.5.pre1 spec/integration/todos_spec.rb
volt-0.9.4 spec/integration/todos_spec.rb
volt-0.9.4.pre5 spec/integration/todos_spec.rb
volt-0.9.4.pre3 spec/integration/todos_spec.rb
volt-0.9.4.pre2 spec/integration/todos_spec.rb
volt-0.9.4.pre1 spec/integration/todos_spec.rb
volt-0.9.3 spec/integration/todos_spec.rb
volt-0.9.3.pre6 spec/integration/todos_spec.rb
volt-0.9.3.pre5 spec/integration/todos_spec.rb
volt-0.9.3.pre4 spec/integration/todos_spec.rb
volt-0.9.3.pre3 spec/integration/todos_spec.rb
volt-0.9.3.pre2 spec/integration/todos_spec.rb
volt-0.9.3.pre1 spec/integration/todos_spec.rb
volt-0.9.2 spec/integration/todos_spec.rb