Skip to content

Commit 3f6adbd

Browse files
committed
XWIKI-22286: Add automated test for "Show User and Group Rights"
* Fix test (cherry picked from commit ed0a7fc)
1 parent 5c5c056 commit 3f6adbd

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-docker/src/test/it/org/xwiki/administration/test/ui

xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-docker/src/test/it/org/xwiki/administration/test/ui/UsersGroupsRightsManagementIT.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,11 @@ void rightsShowUsersAndGroups(TestUtils setup, TestReference testReference)
740740

741741
// Create the admin user so that we can verify it's listed in the Rights table.
742742
setup.createAdminUser();
743+
// createAdminUser() logs in as the non-superadmin "Admin" user; log back in as superadmin so that
744+
// navigating to the (global and page) administration is race-free, matching the rest of this class. The
745+
// "Admin" user document is created via REST regardless of who is logged in, so it's still listed in the
746+
// Rights table below.
747+
setup.loginAsSuperAdmin();
743748

744749
// Global level -> Administer Wiki -> Users & Rights -> Rights.
745750
AdministrationPage administrationPage = AdministrationPage.gotoPage();

0 commit comments

Comments
 (0)