Sha256: b2de7a25737925a487f3c9b3db3fe84a778242f3d57a0f350e5ce2f8c6580487

Contents?: true

Size: 1.01 KB

Versions: 13

Compression:

Stored size: 1.01 KB

Contents

module Selectors
  module Dashboard
    def db_item_actions_toggle(item)
      within "#document_#{item.id}" do
        find '.dropdown-toggle'
      end
    end
  end

  module NewTransfers
    def new_owner_dropdown
      find '#s2id_proxy_deposit_request_transfer_to'
    end

    def new_owner_search_field
      within '#select2-drop' do
        find '.select2-input'
      end
    end

    def new_owner_search_result
      within '#select2-drop' do
        find '.select2-result-selectable'
      end
    end

    def submit_button
      within '#new_transfer' do
        find 'input[type=submit]'
      end
    end
  end

  module Transfers
    def first_sent_cancel_button
      within '#outgoing-transfers' do
        find '.btn.btn-danger'
      end
    end

    def first_received_accept_dropdown
      within '#incoming-transfers' do
        find '.dropdown-toggle.accept'
      end
    end

    def first_received_reject_button
      within '#incoming-transfers' do
        find '.btn.btn-danger'
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
sufia-7.4.1 spec/support/selectors.rb
sufia-7.4.0 spec/support/selectors.rb
hyrax-1.0.2 spec/support/selectors.rb
hyrax-1.0.1 spec/support/selectors.rb
hyrax-1.0.0.rc2 spec/support/selectors.rb
sufia-7.3.1 spec/support/selectors.rb
hyrax-1.0.0.rc1 spec/support/selectors.rb
sufia-7.3.0 spec/support/selectors.rb
sufia-7.3.0.rc3 spec/support/selectors.rb
sufia-7.3.0.rc2 spec/support/selectors.rb
sufia-7.3.0.rc1 spec/support/selectors.rb
test_hyrax-0.0.1.alpha spec/support/selectors.rb
sufia-7.2.0 spec/support/selectors.rb