From 6fa52a64999f124a98c9841ec3eb0196df5c288d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Saquetim?= <1108771+megothss@users.noreply.github.com> Date: Thu, 12 Dec 2024 15:36:05 -0300 Subject: [PATCH] DEV: Improve tests and fixes small issues in the Glimmer Post Menu (#30234) This commit improves some tests to using both the glimmer post menu and the widget version. It also addresses some small issues in the Glimmer Post Menu: - Deprecated Font Awesome icon in the Edit button - Set correctly `aria-pressed` in the Like Count when the list of people who liked is visible - Display the user tip for the Show More button --- .../discourse/app/components/post/menu.gjs | 7 +- .../app/components/post/menu/buttons/edit.gjs | 2 +- .../app/components/post/menu/buttons/like.gjs | 2 +- .../tests/acceptance/post-controls-test.js | 167 ++++---- .../discourse/tests/acceptance/topic-test.js | 379 +++++++++--------- .../tests/acceptance/user-tips-test.js | 26 +- .../components/widgets/post-stream-test.gjs | 235 +++++++++++ .../components/widgets/post-stream-test.js | 196 --------- 8 files changed, 543 insertions(+), 471 deletions(-) create mode 100644 app/assets/javascripts/discourse/tests/integration/components/widgets/post-stream-test.gjs delete mode 100644 app/assets/javascripts/discourse/tests/integration/components/widgets/post-stream-test.js diff --git a/app/assets/javascripts/discourse/app/components/post/menu.gjs b/app/assets/javascripts/discourse/app/components/post/menu.gjs index 41b49650405..5a64d3b4ea3 100644 --- a/app/assets/javascripts/discourse/app/components/post/menu.gjs +++ b/app/assets/javascripts/discourse/app/components/post/menu.gjs @@ -583,6 +583,7 @@ export default class PostMenu extends Component { @outletArgs={{hash post=@post state=this.state}} >