Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / test / integration / browser_unsupported_test.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 require 'integration_helper'
6
7 class BrowserUnsupported < ActionDispatch::IntegrationTest
8   WARNING_FRAGMENT = 'Your web browser is missing some of the features'
9
10   test 'warning if no File API' do
11     Capybara.current_driver = :poltergeist_without_file_api
12     visit '/'
13     assert_text :visible, WARNING_FRAGMENT
14   end
15
16   test 'no warning if File API' do
17     need_javascript
18     visit '/'
19     assert_no_text :visible, WARNING_FRAGMENT
20   end
21 end