1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 # http://guides.rubyonrails.org/v3.2.13/performance_testing.html
8 require 'rails/performance_test_help'
9 require 'performance_test_helper'
10 require 'selenium-webdriver'
13 class BrowsingTest < WorkbenchPerformanceTest
14 self.profile_options = { :runs => 5,
15 :metrics => [:wall_time],
16 :output => 'tmp/performance',
25 assert_text 'Dashboard'
26 assert_selector 'a', text: 'Run a process'
29 test "search for hash" do
31 assert_text 'Dashboard'
33 assert_selector '.navbar-fixed-top'
34 assert_triggers_dom_event 'shown.bs.modal' do
35 within '.navbar-fixed-top' do
36 find_field('search this site').set 'hash'
37 find('.glyphicon-search').click
43 # In the search dialog now. Expect at least one item in the result display.
44 within '.modal-content' do
45 assert_text 'All projects'
47 assert_selector '.selectable[data-object-uuid]'