]> source.dussan.org Git - sonarqube.git/commitdiff
Fix unconsistant IT's in organization membership
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Mon, 22 May 2017 06:39:07 +0000 (08:39 +0200)
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>
Mon, 22 May 2017 07:47:33 +0000 (09:47 +0200)
it/it-tests/src/test/java/it/organization/OrganizationMembershipTest.java

index 7d2361f48dde811f91b7589cf2a8c825dd1ff34d..b6cf2011bb84e994b01b7c9febeb2e22e2f4440a 100644 (file)
@@ -222,8 +222,8 @@ public class OrganizationMembershipTest {
   @Test
   public void admin_can_manage_groups() {
     String orgKey = createOrganization();
-    String user = createUser();
-    adminClient.organizations().addMember(orgKey, user);
+    userRule.createUser("baz", "pwd");;
+    adminClient.organizations().addMember(orgKey, "baz");
 
     MembersPage page = nav.logIn().asAdmin().openOrganizationMembers(orgKey);
     // foo user
@@ -243,10 +243,10 @@ public class OrganizationMembershipTest {
   @Test
   public void groups_count_should_be_updated_when_a_member_was_just_added() {
     String orgKey = createOrganization();
-    String user = createUser();
+    userRule.createUser("neo", "pwd");
     MembersPage page = nav.logIn().asAdmin().openOrganizationMembers(orgKey);
     page
-      .addMember(user)
+      .addMember("neo")
       .getMembersByIdx(1)
       .shouldHaveGroups(1)
       .manageGroupsOpen()