From: Julien Lancelot Date: Tue, 13 Jun 2017 13:21:35 +0000 (+0200) Subject: SONAR-9356 Add IT on reactivated user that should see tutorial X-Git-Tag: 6.5-M2~121 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b2f00b82f85e0ef8aa3a516b4ff3e3e62621ac52;p=sonarqube.git SONAR-9356 Add IT on reactivated user that should see tutorial --- diff --git a/it/it-tests/src/test/java/it/user/OnboardingTest.java b/it/it-tests/src/test/java/it/user/OnboardingTest.java index 14a2f99d68c..9bd8530d48f 100644 --- a/it/it-tests/src/test/java/it/user/OnboardingTest.java +++ b/it/it-tests/src/test/java/it/user/OnboardingTest.java @@ -143,6 +143,19 @@ public class OnboardingTest { assertThat(adminService.current().getShowOnboardingTutorial()).isEqualTo(true); } + @Test + public void reactivated_user_should_see_the_onboarding_tutorial() { + setShownOnboardingSetting(true); + createUser(); + createUsersServiceForUser().skipOnboardingTutorial(); + assertOnboardingTutorial(false); + + userRule.deactivateUsers(userLogin); + userRule.createUser(userLogin, userLogin); + + assertOnboardingTutorial(true); + } + private void createUser() { userLogin = randomAlphabetic(10).toLowerCase(); userRule.createUser(userLogin, userLogin);