Sha256: b59a2f8f55a6ec4d6e797c60190ad42c3a1a25c6ed5f72b170e41e768dc8d93a

Contents?: true

Size: 1.16 KB

Versions: 8

Compression:

Stored size: 1.16 KB

Contents

require 'rails_helper'

describe 'Shows execution histories', type: :feature do
  before { sign_in }

  let!(:worker) { create(:worker, hostname: 'rspec') }
  let(:job_definition) { create(:job_definition) }
  let!(:histories) { create_list(:execution_history, 3, job_definition: job_definition) }

  it 'shows list of execution histories' do
    visit kuroko2.workers_path
    expect(page).to have_content('Kuroko Workers')
    expect(page).to have_content('rspec')
    expect(page).to have_content('@default')

    click_on 'rspec'

    expect(page).to have_content('Execution Histories')
    expect(page).to have_selector('#execution-histories table tbody tr', count: 3)
    expect(page).to have_content('rspec')
    expect(page).to have_content('@default')
    expect(page).to have_content(job_definition.name)
  end

  it 'shows timeline of execution histories' do
    visit kuroko2.execution_histories_path(hostname: 'rspec')

    expect(page).to have_content('Execution Histories')
    expect(page).to have_content('Show Timeline')

    click_on 'Show Timeline'

    expect(page).to have_content('Execution Timeline')
    expect(page).to have_content(job_definition.name)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
kuroko2-0.8.0 spec/features/execution_histories_spec.rb
kuroko2-0.7.0 spec/features/execution_histories_spec.rb
kuroko2-0.6.0 spec/features/execution_histories_spec.rb
kuroko2-0.5.2 spec/features/execution_histories_spec.rb
kuroko2-0.5.1 spec/features/execution_histories_spec.rb
kuroko2-0.5.0 spec/features/execution_histories_spec.rb
kuroko2-0.4.6 spec/features/execution_histories_spec.rb
kuroko2-0.4.5 spec/features/execution_histories_spec.rb