8784: Fix test for latest firefox.
[arvados.git] / apps / workbench / test / integration / browser_unsupported_test.rb
1 require 'integration_helper'
2
3 class BrowserUnsupported < ActionDispatch::IntegrationTest
4   WARNING_FRAGMENT = 'Your web browser is missing some of the features'
5
6   test 'warning if no File API' do
7     Capybara.current_driver = :poltergeist_without_file_api
8     visit '/'
9     assert_text :visible, WARNING_FRAGMENT
10   end
11
12   test 'no warning if File API' do
13     need_javascript
14     visit '/'
15     assert_no_text :visible, WARNING_FRAGMENT
16   end
17 end