From eedbaa2a905339e973db80b97d2b1730e8f6aa51 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 8 May 2024 10:14:15 +0200 Subject: [PATCH] FIX: adaptes acceptance tests for new dropdown-menu --- .../discourse/components/assigned-to-post.gjs | 11 ++++++++--- test/javascripts/acceptance/post-popup-menu-test.js | 4 ++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/assets/javascripts/discourse/components/assigned-to-post.gjs b/assets/javascripts/discourse/components/assigned-to-post.gjs index 837578f3..01327b8f 100644 --- a/assets/javascripts/discourse/components/assigned-to-post.gjs +++ b/assets/javascripts/discourse/components/assigned-to-post.gjs @@ -39,14 +39,19 @@ export default class AssignedToPost extends Component { {{/if}} - + @@ -54,7 +59,7 @@ export default class AssignedToPost extends Component { @action={{this.editAssignment}} @icon="group-plus" @label="discourse_assign.reassign.title_w_ellipsis" - class="btn-transparent" + class="btn-transparent edit-assignment-btn" /> diff --git a/test/javascripts/acceptance/post-popup-menu-test.js b/test/javascripts/acceptance/post-popup-menu-test.js index a85768c0..f9809a5b 100644 --- a/test/javascripts/acceptance/post-popup-menu-test.js +++ b/test/javascripts/acceptance/post-popup-menu-test.js @@ -13,8 +13,8 @@ const selectors = { assignedTo: ".post-stream article#post_2 .assigned-to", moreButton: ".post-stream .topic-post .more-button", popupMenu: { - unassign: ".popup-menu .popup-menu-btn svg.d-icon-user-plus", - editAssignment: ".popup-menu .popup-menu-btn svg.d-icon-group-plus", + unassign: ".post-assign-menu-content .unassign-btn", + editAssignment: ".post-assign-menu-content .edit-assignment-btn", }, modal: { assignee: ".modal-container .select-kit-header-wrapper",