1 # http://guides.rubyonrails.org/v3.2.13/performance_testing.html
4 require 'rails/performance_test_help'
5 require 'performance_test_helper'
6 require 'selenium-webdriver'
9 class BrowsingTest < WorkbenchPerformanceTest
10 self.profile_options = { :runs => 5,
11 :metrics => [:wall_time],
12 :output => 'tmp/performance',
21 assert_text 'Dashboard'
22 assert_selector 'a', text: 'Run a pipeline'
25 test "search for hash" do
27 assert_text 'Dashboard'
29 assert_selector '.navbar-fixed-top'
30 assert_triggers_dom_event 'shown.bs.modal' do
31 within '.navbar-fixed-top' do
32 find_field('search').set 'hash'
33 find('.glyphicon-search').click
37 # In the search dialog now. Expect at least one item in the result display.
38 within '.modal-content' do
39 assert_text 'All projects'
41 assert_selector '.selectable[data-object-uuid]'