FIX: adaptes acceptance tests for new dropdown-menu (#570)

This commit is contained in:
Joffrey JAFFEUX 2024-05-08 11:01:49 +02:00 committed by GitHub
parent 5e75baa5f6
commit 6c229284a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 5 deletions

View File

@ -39,14 +39,19 @@ export default class AssignedToPost extends Component {
{{/if}}
</a>
<DMenu @icon="ellipsis-h" class="btn-flat more-button" @autofocus={{true}}>
<DMenu
@identifier="post-assign-menu"
@icon="ellipsis-h"
class="btn-flat more-button"
@autofocus={{true}}
>
<DropdownMenu as |dropdown|>
<dropdown.item>
<DButton
@action={{this.unassign}}
@icon="user-plus"
@label="discourse_assign.unassign.title"
class="btn-transparent"
class="btn-transparent unassign-btn"
/>
</dropdown.item>
<dropdown.item>
@ -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"
/>
</dropdown.item>
</DropdownMenu>

View File

@ -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",