discourse/spec/system/page_objects/modals
Osama Sayegh 35b748e7f4
FIX: Don't show silence button on staff users and display similar users (#28423)
This commit fixes a bug where the silence button is incorrectly displayed on the admin page of a staff user. It's not actually possible to silence a staff user because the backend correctly prevents it, but the frontend isn't checking if the button should be displayed.

Another small bug that this commit fixes is the similar users list not showing up inside the silence/suspend modals due to also a bug in the frontend.

I've also changed the way similar users are loaded so that they're not returned by the `admin/users#show` endpoint anymore and moved them into a new endpoint that the penalize modals (suspend and silence) can call directly to retrieve the list of users. This is done because the similar users list is never shown on the admin user page (`/admin/users/:user_id/:username`); they're only needed when the suspend or silence modals are opened.

Internal topic: t/130014.
2024-08-20 15:27:29 +03:00
..
avatar_selector.rb FIX: Serialize uploaded_avatars_allowed_groups check on current user (#25515) 2024-02-02 09:32:45 +10:00
badge.rb DEV: lint against Layout/EmptyLineBetweenDefs (#24914) 2023-12-15 23:46:04 +08:00
base.rb UX: modal > remove obsolete wrapper class (#24381) 2023-11-15 11:33:23 +00:00
bookmark.rb FIX: relative picker was being reset on change (#26766) 2024-04-26 10:59:51 +02:00
change_owner.rb DEV: lint against Layout/EmptyLineBetweenDefs (#24914) 2023-12-15 23:46:04 +08:00
delete_themes_confirm.rb UX: refactor .d-modal to use BEM and improve styling (#23967) 2023-11-15 10:14:47 +00:00
discard_draft.rb FIX: prevents showing discard modal on re-edit (#26639) 2024-04-16 10:34:32 +02:00
dismiss_new.rb
flag.rb UX: move admin flag form to form-kit (#28187) 2024-08-05 11:01:25 +10:00
insert_table.rb DEV: Attempt to fix flaky test by using click_button instead of click (#25070) 2023-12-29 14:39:37 +08:00
login.rb DEV: More system specs for signup/login (#27150) 2024-05-23 10:01:05 -03:00
penalize_user.rb FIX: Don't show silence button on staff users and display similar users (#28423) 2024-08-20 15:27:29 +03:00
private_message_invite.rb DEV: convert PrivateMessageMap widget to glimmer components (#25837) 2024-03-04 10:24:25 +08:00
private_message_remove_participant.rb DEV: convert PrivateMessageMap widget to glimmer components (#25837) 2024-03-04 10:24:25 +08:00
reject_reason_reviewable.rb UX: refactor .d-modal to use BEM and improve styling (#23967) 2023-11-15 10:14:47 +00:00
sidebar_edit_categories.rb DEV: Fix Lint/DuplicateMethods (#24746) 2023-12-06 13:18:34 +01:00
sidebar_edit_navigation_modal.rb UX: refactor .d-modal to use BEM and improve styling (#23967) 2023-11-15 10:14:47 +00:00
sidebar_edit_tags.rb
sidebar_section_form.rb FEATURE: confirmation when a public section is updated (#26546) 2024-04-09 09:58:30 +10:00
signup.rb DEV: More system specs for signup/login (#27150) 2024-05-23 10:01:05 -03:00
topic_bulk_actions.rb FEATURE: Bulk topic tagging allowing restricted operations on sole categories (#26602) 2024-04-12 13:10:14 +10:00