Sha256: e31d072a6f2c07a4a5376609d8fe924f2d433dff7dea01092fc192b6f4119784

Contents?: true

Size: 1.04 KB

Versions: 9

Compression:

Stored size: 1.04 KB

Contents

Given(/^I have one running Auton$/) do
  class SomeCoolAuton
    include StructureMapper::Hash

    def start
    end

    attribute foo: String
  end
  @auton_id = Celluloid::Actor[:nestene_core].create_auton "SomeCoolAuton"
end

When(/^I view the Auton$/) do
  visit '/'
  click_on @auton_id
end

Then(/^I should see Auton's id/) do
  expect(page).to have_content @auton_id
end


Then(/^I should see Auton's status$/) do
  expect(page.find('#auton_state').text).to eq('ready')
end

Then(/^I should see Auton's state$/) do
  expect(page).to have_css('#current_state')
end

Then(/^I should see Auton's queue$/) do
  expect(page).to have_css('#queue')
end

Then(/^I should see Auton's executed steps$/) do
    expect(page).to have_css('#executed')
end

Then(/^I should see Auton's current step$/) do
    expect(page).to have_css('#executing')
end

Then(/^I should see Auton's scheduled steps$/) do
    expect(page).to have_css('#to_execute')
end

Then(/^I should see Auton's delayed steps$/) do
  pending # express the regexp above with the code you wish you had
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
nestene-0.1.8 features/step_definitions/ui/show_auton_steps.rb
nestene-0.1.7 features/step_definitions/ui/show_auton_steps.rb
nestene-0.1.6 features/step_definitions/ui/show_auton_steps.rb
nestene-0.1.5 features/step_definitions/ui/show_auton_steps.rb
nestene-0.1.4 features/step_definitions/ui/show_auton_steps.rb
nestene-0.1.3 features/step_definitions/ui/show_auton_steps.rb
nestene-0.1.2 features/step_definitions/ui/show_auton_steps.rb
nestene-0.1.1 features/step_definitions/ui/show_auton_steps.rb
nestene-0.1.0 features/step_definitions/ui/show_auton_steps.rb