mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
rename references to user_email to username
This commit is contained in:
@@ -576,7 +576,7 @@ class NavigatesGalaxy(HasDriver):
|
||||
# Make sure the user menu was dropped down
|
||||
user_menu = self.components.masthead.user_menu.wait_for_visible()
|
||||
try:
|
||||
username_element = self.components.masthead.user_email.wait_for_visible()
|
||||
username_element = self.components.masthead.username.wait_for_visible()
|
||||
except self.TimeoutException as e:
|
||||
menu_items = user_menu.find_elements_by_css_selector("li a")
|
||||
menu_text = [mi.text for mi in menu_items]
|
||||
|
||||
@@ -39,7 +39,7 @@ masthead:
|
||||
user_menu: '#user .dropdown-menu a'
|
||||
workflow: '#workflow .nav-link'
|
||||
|
||||
user_email:
|
||||
username:
|
||||
type: xpath
|
||||
selector: '//a[contains(text(), "Logged in as")]'
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ class RegistrationTestCase(SeleniumTestCase):
|
||||
self.logout_if_needed()
|
||||
assert not self.is_logged_in()
|
||||
self.home()
|
||||
self.components.masthead.user_email.assert_absent_or_hidden()
|
||||
self.components.masthead.username.assert_absent_or_hidden()
|
||||
|
||||
@selenium_test
|
||||
def test_reregister_email_fails(self):
|
||||
|
||||
Reference in New Issue
Block a user