Skip to content

Commit e18261b

Browse files
committed
[Misc] Try stabilizing NotificationsSettingsIT
Using more predictable user accounts for deleting/registering users might possibly fix flickering behavior we observed on CI.
1 parent 6ad01cd commit e18261b

File tree

1 file changed

+2
-0
lines changed
  • xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-test/xwiki-platform-notifications-test-docker/src/test/it/org/xwiki/platform/notifications/test/ui

1 file changed

+2
-0
lines changed

xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-test/xwiki-platform-notifications-test-docker/src/test/it/org/xwiki/platform/notifications/test/ui/NotificationsSettingsIT.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,14 @@ class NotificationsSettingsIT
9999
@BeforeEach
100100
void setup(TestUtils testUtils)
101101
{
102+
testUtils.forceGuestUser();
102103
testUtils.createUser(FIRST_USER_NAME, FIRST_USER_PASSWORD, "", "");
103104
}
104105

105106
@AfterEach
106107
void tearDown(TestUtils testUtils)
107108
{
109+
testUtils.loginAsSuperAdmin();
108110
testUtils.deletePage("XWiki", FIRST_USER_NAME);
109111
}
110112

0 commit comments

Comments
 (0)