Failure in qa/specs/features/browser_ui/3_create/repository/push_over_http_file_size_spec.rb
Job #161912414 failed for f40b0002:
1) Create push after setting the file size limit via admin/application_settings push successful when the file size is under the limit
Failure/Error: Page::Main::Menu.perform(&:go_to_admin_area)
Capybara::ElementNotFound:
Unable to find visible css ".qa-admin-area-link" within #<Capybara::Node::Element tag="header" path="/html/body/header">
# /usr/local/bundle/gems/capybara-2.16.1/lib/capybara/node/finders.rb:314:in `block in synced_resolve'
# /usr/local/bundle/gems/capybara-2.16.1/lib/capybara/node/base.rb:85:in `synchronize'
# /usr/local/bundle/gems/capybara-2.16.1/lib/capybara/node/finders.rb:302:in `synced_resolve'
# /usr/local/bundle/gems/capybara-2.16.1/lib/capybara/node/finders.rb:37:in `find'
# /usr/local/bundle/gems/capybara-2.16.1/lib/capybara/session.rb:810:in `block (2 levels) in <class:Session>'
# /usr/local/bundle/gems/capybara-2.16.1/lib/capybara/dsl.rb:50:in `block (2 levels) in <module:DSL>'
# ./qa/page/base.rb:84:in `find_element'
# ./qa/support/page/logging.rb:46:in `find_element'
# ./qa/page/base.rb:100:in `click_element'
# ./qa/support/page/logging.rb:66:in `click_element'
# ./qa/page/main/menu.rb:50:in `block in go_to_admin_area'
# ./qa/page/main/menu.rb:81:in `block in within_top_menu'
# /usr/local/bundle/gems/capybara-2.16.1/lib/capybara/session.rb:343:in `within'
# ./qa/page/main/menu.rb:80:in `within_top_menu'
# ./qa/page/main/menu.rb:50:in `go_to_admin_area'
# ./qa/scenario/actable.rb:14:in `perform'
# ./qa/specs/features/browser_ui/3_create/repository/push_over_http_file_size_spec.rb:47:in `set_file_size_limit'
# ./qa/specs/features/browser_ui/3_create/repository/push_over_http_file_size_spec.rb:31:in `block (3 levels) in <module:QA>'
2) Create push after setting the file size limit via admin/application_settings push fails when the file size is above the limit
Failure/Error: Page::Main::Menu.perform(&:go_to_admin_area)
Capybara::ElementNotFound:
Unable to find visible css ".qa-admin-area-link" within #<Capybara::Node::Element tag="header" path="/html/body/header">
# /usr/local/bundle/gems/capybara-2.16.1/lib/capybara/node/finders.rb:314:in `block in synced_resolve'
# /usr/local/bundle/gems/capybara-2.16.1/lib/capybara/node/base.rb:85:in `synchronize'
# /usr/local/bundle/gems/capybara-2.16.1/lib/capybara/node/finders.rb:302:in `synced_resolve'
# /usr/local/bundle/gems/capybara-2.16.1/lib/capybara/node/finders.rb:37:in `find'
# /usr/local/bundle/gems/capybara-2.16.1/lib/capybara/session.rb:810:in `block (2 levels) in <class:Session>'
# /usr/local/bundle/gems/capybara-2.16.1/lib/capybara/dsl.rb:50:in `block (2 levels) in <module:DSL>'
# ./qa/page/base.rb:84:in `find_element'
# ./qa/support/page/logging.rb:46:in `find_element'
# ./qa/page/base.rb:100:in `click_element'
# ./qa/support/page/logging.rb:66:in `click_element'
# ./qa/page/main/menu.rb:50:in `block in go_to_admin_area'
# ./qa/page/main/menu.rb:81:in `block in within_top_menu'
# /usr/local/bundle/gems/capybara-2.16.1/lib/capybara/session.rb:343:in `within'
# ./qa/page/main/menu.rb:80:in `within_top_menu'
# ./qa/page/main/menu.rb:50:in `go_to_admin_area'
# ./qa/scenario/actable.rb:14:in `perform'
# ./qa/specs/features/browser_ui/3_create/repository/push_over_http_file_size_spec.rb:47:in `set_file_size_limit'
# ./qa/specs/features/browser_ui/3_create/repository/push_over_http_file_size_spec.rb:39:in `block (3 levels) in <module:QA>'
The test can't run because it requires admin access, which we don't have on staging.
It didn't fail until now because a) it wasn't added to the release build until 11.8 so it wasn't actually running on staging, and b) the smoke tests were failing for a while.
We need a way to exclude tests from staging if they require admin access. We could add another "supported feature" flag like QA_CAN_TEST_GIT_PROTOCOL_V2
.