FIX: adaptes acceptance tests for new dropdown-menu (#570)
This commit is contained in:
parent
5e75baa5f6
commit
6c229284a9
|
@ -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>
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue