Commit c04497c7 authored by Arkadiusz Hiler's avatar Arkadiusz Hiler

test_user_browser: Make login test resolution independent

The assert on the dropdown toggle failed in some scenarios.

This was caused by responsive design that made the element invisible in
smaller viewports, and size of the viewport depends on the screen
resolution and window manager configuration.

This patch changes asserts to more robust ones.
Signed-off-by: default avatarArkadiusz Hiler <>
parent ff91eb8a
......@@ -36,5 +36,6 @@ class LoginTestCase(SeleniumTestCase):
self.enter_text('username', self.user.username)
self.enter_text('password', self.user.password)'input[value="Login"]')
dropdown = self.wait_until_visible('a.dropdown-toggle strong')
self.assertEqual(dropdown.text, 'testuser')
header = self.wait_until_visible('h1')
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