Sha256: c7a8152efddc4788c52be3d9185d237f15b74327e40cdfd2d13dd154af0f63f8

Contents?: true

Size: 792 Bytes

Versions: 9

Compression:

Stored size: 792 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'
require_relative '../support/pages/operations.rb'

feature 'Workflow Operations' do
  scenario 'User assigns operations' do
    create :regular_user

    given_current_user_role_is 'admin'
    given_a_process('user_operation_template')

    visit '/workflow/operations'
    operations_page = Pages::Operations.new(page)

    expect(operations_page.have_title?('Operations')).to be true

    expect(operations_page.have_operation?(
             title: 'Regular User Operation',
             status: 'Waiting'
    )).to be true

    expect(operations_page.have_operation?(
             title: 'Admin Operation',
             status: 'Waiting',
             assignment: 'Admin',
             button_text: 'Start'
    )).to be true
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_workflow-0.7.3 spec/features/operations_spec.rb
rails_workflow-0.7.2 spec/features/operations_spec.rb
rails_workflow-0.7.1 spec/features/operations_spec.rb
rails_workflow-0.7.0 spec/features/operations_spec.rb
rails_workflow-0.4.4 spec/features/operations_spec.rb
rails_workflow-0.4.3 spec/features/operations_spec.rb
rails_workflow-0.4.2 spec/features/operations_spec.rb
rails_workflow-0.4.1 spec/features/operations_spec.rb
rails_workflow-0.4.0 spec/features/operations_spec.rb