projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add 'apps/arv-web/' from commit 'f9732ad8460d013c2f28363655d0d1b91894dca5'
[arvados.git]
/
apps
/
workbench
/
test
/
performance
/
browsing_test.rb
diff --git
a/apps/workbench/test/performance/browsing_test.rb
b/apps/workbench/test/performance/browsing_test.rb
index 1340bcc1c0db7e3f879d6d2d62d776541d5a3269..f15e3ea5fd0762ccaf650eb0302d00ed1764783d 100644
(file)
--- a/
apps/workbench/test/performance/browsing_test.rb
+++ b/
apps/workbench/test/performance/browsing_test.rb
@@
-2,42
+2,45
@@
require 'test_helper'
require 'rails/performance_test_help'
require 'test_helper'
require 'rails/performance_test_help'
-require '
integration
_helper'
+require '
performance_test
_helper'
require 'selenium-webdriver'
require 'headless'
require 'selenium-webdriver'
require 'headless'
-class BrowsingTest <
ActionDispatch::
PerformanceTest
- self.profile_options = { :runs =>
10
,
+class BrowsingTest <
Workbench
PerformanceTest
+ self.profile_options = { :runs =>
5
,
:metrics => [:wall_time],
:output => 'tmp/performance',
:formats => [:flat] }
setup do
:metrics => [:wall_time],
:output => 'tmp/performance',
:formats => [:flat] }
setup do
- headless = Headless.new
- headless.start
- Capybara.current_driver = :selenium
- Capybara.current_session.driver.browser.manage.window.resize_to(1024, 768)
+ need_javascript
end
end
- test "visit home page" do
- visit page_with_token('active')
+ test "home page" do
+ visit_page_with_token
+ wait_for_ajax
assert_text 'Dashboard'
assert_selector 'a', text: 'Run a pipeline'
end
test "search for hash" do
assert_text 'Dashboard'
assert_selector 'a', text: 'Run a pipeline'
end
test "search for hash" do
- visit page_with_token('active')
+ visit_page_with_token
+ wait_for_ajax
+ assert_text 'Dashboard'
within('.navbar-fixed-top') do
page.find_field('search').set('hash')
within('.navbar-fixed-top') do
page.find_field('search').set('hash')
+ wait_for_ajax
page.find('.glyphicon-search').click
end
# In the search dialog now. Expect at least one item in the result display.
within '.modal-content' do
page.find('.glyphicon-search').click
end
# In the search dialog now. Expect at least one item in the result display.
within '.modal-content' do
+ wait_for_ajax
assert_text 'All projects'
assert_text 'Search'
assert_text 'All projects'
assert_text 'Search'
- assert_selector('div', text: 'zzzzz-')
+ assert(page.has_selector?(".selectable[data-object-uuid]"))
+ click_button 'Cancel'
end
end
end
end
end
end