Sha256: 4d49955e249535d0a6a0c0bbaeaf0045d8d5bcf9c81a9aaaece189db486b9e0d
Contents?: true
Size: 967 Bytes
Versions: 1
Compression:
Stored size: 967 Bytes
Contents
# frozen_string_literal: true describe 'Choosing files', type: :feature, js: true do before do visit '/' end shared_examples 'browseable files' do # This is a work-around until the support for Webpacker is resolved it 'selects files from the filesystem' do click_button('Browse') wait_for_ajax expect(page).to have_selector '#browse-everything' expect(page).to have_link 'config.ru' find(:css, '#config-ru').set(true) within('.modal-footer') do click_button('Submit') end wait_for_ajax expect(page).to have_selector('#status', text: '1 items selected') end end context 'when Turbolinks are enabled', fail: true do before { click_link('Enter Test App (Turbolinks)') } it_behaves_like 'browseable files' end context 'when Turbolinks are disabled' do before { click_link('Enter Test App (No Turbolinks)') } it_behaves_like 'browseable files' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
browse-everything-1.2.0 | spec/features/select_files_spec.rb |