Permalink
Browse files

Merge pull request #552 from zanata/fix-functional-tests

fix: add IDs to fix functional tests
  • Loading branch information...
kathryngo
kathryngo committed Oct 4, 2017
2 parents 51ed14e + 881658f commit f0557779a574574d1a48e601fc15391fccf71bc5
@@ -34,8 +34,8 @@
org.slf4j.LoggerFactory.getLogger(ProfilePage.class);
private By displayNameBy = By.id("profile-displayname");
private By userNameBy = By.id("profile-username");
private By languagesBy = By.id("profile-languages");
private By contributionsBy = By.id("profile-matrix");
private By languagesBy = By.id("profileLanguages");
private By contributionsBy = By.id("userProfile-matrix");
public ProfilePage(WebDriver driver) {
super(driver);
@@ -120,7 +120,7 @@ class Languages extends Component {
{permission.canAddLocale &&
<div>
<Button bsStyle='primary' bsSize='small'
id='btnLanguageAdd'
id='btn-language-add-new'
onClick={handleOnDisplayNewLanguage}>
<Icon name='plus' className='n1 plusicon'
title='plus' />
@@ -16,7 +16,7 @@ span.languageCode {
color: #aaa;
}
#btnLanguageAdd {
#btn-language-add-new {
margin-left: @spacing-large-vertical;
}
@@ -89,12 +89,12 @@ class UserProfile extends Component {
<div className='u-flexColumn details-text'>
{name &&
<div className='username h2 ellipsis'
id='userProfile-displayName'>
id='profile-displayname'>
{name}
</div>
}
<ul className='largeFontList'>
<li className='u-flexCenter' id='profileUsername'>
<li className='u-flexCenter' id='profile-username'>
<Icon name='user' className='s0' title='Username' />
{username}
</li>
@@ -63,7 +63,7 @@ h2.matrixHeading {
max-width: 100% !important;
}
#profileUsername, #profileLanguages, #profileRoles {
#profile-username, #profileLanguages, #profileRoles {
line-height: @line-height-large;
}
@@ -157,7 +157,7 @@ ul.largeFontList li.u-flexCenter svg {
margin-bottom: @spacing-base-and-a-half;
}
#userProfile-displayName {
#profile-displayname {
color: @color-dark;
font-weight: 600;
margin-bottom: @spacing-rh;

0 comments on commit f055777

Please sign in to comment.