dropped element selector in CSS and test file
This commit is contained in:
@@ -64,7 +64,7 @@ class DashboardPage(PageObject):
|
||||
@property
|
||||
def username(self):
|
||||
"""Return the displayed value for the user's username"""
|
||||
return self.q(css='h1.user-name').text[0]
|
||||
return self.q(css='.user-name').text[0]
|
||||
|
||||
def get_enrollment_mode(self, course_name):
|
||||
"""Get the enrollment mode for a given course on the dashboard.
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
width: flex-grid(12);
|
||||
background: $dashboard-profile-color;
|
||||
|
||||
h1.user-name {
|
||||
h2.user-name {
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
padding: ($baseline*0.75) ($baseline/2);
|
||||
@@ -28,6 +28,7 @@
|
||||
text-transform: none;
|
||||
text-wrap: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
text-align: center;
|
||||
font: 700 1.2em/1.2em $sans-serif;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user