Skip to content

Commit

Permalink
[webui] trying to make the testsuite work again
Browse files Browse the repository at this point in the history
the interconnect page getting in the way when you login as admin is
not useful - not for testing and it's doubtful it's useful in general
  • Loading branch information
coolo committed Nov 21, 2012
1 parent 88d81a8 commit 6bf5c93
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
7 changes: 7 additions & 0 deletions src/webui/test/functional/messages_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ class MessagesTest < ActionDispatch::IntegrationTest

# check that it's gone
find(:id, 'messages').has_no_text? message

# and now to something completely different - we need to erase home:king
# again so that you still get the same interconnect s*** workflow (TODO!!!)
visit project_show_path(project: 'home:king')
find(:id, 'delete-project').click
find_button('Ok').click

end

end
3 changes: 0 additions & 3 deletions src/webui/test/functional/signup_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,19 @@
class SignupTest < ActionDispatch::IntegrationTest

def test_login
logout
login_user("tom", "thunderz", false)

assert page.has_text?("Please Login")
assert page.has_text?("Authentication failed")

login_user("tom", "thunder")
logout
end

def test_setup_opensuse_org
# first login as admin is redirected twice and does not get the flash
login_user("king", "sunflower", false)

assert page.has_text?("Connect a remote Open Build Service instance")
logout
end

end
Expand Down
2 changes: 2 additions & 0 deletions src/webui/test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

require 'capybara/rails'
Capybara.default_driver = :selenium
# this is the build service! 2 seconds - HAHAHA
Capybara.default_wait_time = 10

class ActionDispatch::IntegrationTest

Expand Down

0 comments on commit 6bf5c93

Please sign in to comment.