Skip to content

Commit

Permalink
[ci] Extend request controller test
Browse files Browse the repository at this point in the history
The test in question currently fails randomly because of missing '#flash-messages'.
Testing the page content before searching for the flash message might give us
a clue what is going wrong, eg. having an error page rendered instead.
  • Loading branch information
bgeuken committed Apr 5, 2016
1 parent 4332f59 commit 0413166
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/test/functional/webui/request_controller_test.rb
Expand Up @@ -317,6 +317,8 @@ def test_can_not_accept_own_requests
fill_in 'description', with: 'I want to see his reaction'
click_button 'Ok'

assert_equal package_show_path(project: 'Apache', package: 'apache2'), page.current_path
assert page.has_content?(/Created submit request \d+ to kde4/)
within '#flash-messages' do
click_link 'submit request'
end
Expand Down

0 comments on commit 0413166

Please sign in to comment.