From b2f00b82f85e0ef8aa3a516b4ff3e3e62621ac52 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Tue, 13 Jun 2017 15:21:35 +0200 Subject: [PATCH] SONAR-9356 Add IT on reactivated user that should see tutorial --- .../src/test/java/it/user/OnboardingTest.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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); -- 2.39.5