settings: Unite user settings into a single panel.

Previously, there were three different sections for managing active
users, deactivated users and invitations.
This commit combines users section has into a single tabbed panel.

Fixes: #26949.

Co-authored-by: shashank-23002 <21bec103@iiitdmj.ac.in>
This commit is contained in:
Shubham Padia
2024-05-30 09:28:49 +00:00
committed by Tim Abbott
parent e4c89771fd
commit 8ab6e71593
19 changed files with 153 additions and 75 deletions

View File

@@ -15,6 +15,7 @@ async function navigate_to_user_list(page: Page): Promise<void> {
await page.waitForSelector("#settings_overlay_container.show", {visible: true});
await page.click("li[data-section='users']");
await page.waitForSelector("#admin-user-list.show", {visible: true});
}
async function user_row(page: Page, name: string): Promise<string> {
@@ -80,7 +81,8 @@ async function test_deactivated_users_section(page: Page): Promise<void> {
// "Deactivated users" section doesn't render just deactivated users until reloaded.
await page.reload();
const deactivated_users_section = "li[data-section='deactivated-users-admin']";
await page.waitForSelector("#admin-user-list.show", {visible: true});
const deactivated_users_section = ".tab-container .ind-tab[data-tab-key='deactivated']";
await page.waitForSelector(deactivated_users_section, {visible: true});
await page.click(deactivated_users_section);