Commit 0350740c authored by Arkadiusz Hiler's avatar Arkadiusz Hiler

test_user_browser: Fix assert so it's resolution independent

parent 3c8da586
Pipeline #1250 failed with stage
in 13 minutes and 14 seconds
...@@ -36,5 +36,6 @@ class LoginTestCase(SeleniumTestCase): ...@@ -36,5 +36,6 @@ class LoginTestCase(SeleniumTestCase):
self.enter_text('username', self.user.username) self.enter_text('username', self.user.username)
self.enter_text('password', self.user.password) self.enter_text('password', self.user.password)
self.click('input[value="Login"]') self.click('input[value="Login"]')
dropdown = self.wait_until_visible('a.dropdown-toggle strong') header = self.wait_until_visible('h1')
self.assertEqual(dropdown.text, 'testuser') self.assertEqual(header.text, 'Your Profile')
self.assertTrue(self.user.username in self.selenium.title)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment