UX: admins users page follows admin ux guideline (#29873)

Conversion of `/admin/users` page to follow admin UX guidelines.

In addition, add the username to the title on the user admin page.
This commit is contained in:
Krzysztof Kotlarek
2024-12-02 10:11:23 +11:00
committed by GitHub
parent 976be2abcd
commit 6d4c6ee154
9 changed files with 225 additions and 97 deletions

View File

@ -44,6 +44,11 @@ describe "Admin User Page", type: :system do
expect(admin_user_page).to have_silence_button
end
it "displays username in the title" do
expect(page).to have_css(".display-row.username")
expect(page.title).to eq("#{user.username} - Admin - Discourse")
end
describe "the suspend user modal" do
it "displays the list of users who share the same IP but are not mods or admins" do
admin_user_page.click_suspend_button