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}}
|
{{/if}}
|
||||||
</a>
|
</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|>
|
<DropdownMenu as |dropdown|>
|
||||||
<dropdown.item>
|
<dropdown.item>
|
||||||
<DButton
|
<DButton
|
||||||
@action={{this.unassign}}
|
@action={{this.unassign}}
|
||||||
@icon="user-plus"
|
@icon="user-plus"
|
||||||
@label="discourse_assign.unassign.title"
|
@label="discourse_assign.unassign.title"
|
||||||
class="btn-transparent"
|
class="btn-transparent unassign-btn"
|
||||||
/>
|
/>
|
||||||
</dropdown.item>
|
</dropdown.item>
|
||||||
<dropdown.item>
|
<dropdown.item>
|
||||||
|
@ -54,7 +59,7 @@ export default class AssignedToPost extends Component {
|
||||||
@action={{this.editAssignment}}
|
@action={{this.editAssignment}}
|
||||||
@icon="group-plus"
|
@icon="group-plus"
|
||||||
@label="discourse_assign.reassign.title_w_ellipsis"
|
@label="discourse_assign.reassign.title_w_ellipsis"
|
||||||
class="btn-transparent"
|
class="btn-transparent edit-assignment-btn"
|
||||||
/>
|
/>
|
||||||
</dropdown.item>
|
</dropdown.item>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
|
|
|
@ -13,8 +13,8 @@ const selectors = {
|
||||||
assignedTo: ".post-stream article#post_2 .assigned-to",
|
assignedTo: ".post-stream article#post_2 .assigned-to",
|
||||||
moreButton: ".post-stream .topic-post .more-button",
|
moreButton: ".post-stream .topic-post .more-button",
|
||||||
popupMenu: {
|
popupMenu: {
|
||||||
unassign: ".popup-menu .popup-menu-btn svg.d-icon-user-plus",
|
unassign: ".post-assign-menu-content .unassign-btn",
|
||||||
editAssignment: ".popup-menu .popup-menu-btn svg.d-icon-group-plus",
|
editAssignment: ".post-assign-menu-content .edit-assignment-btn",
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
assignee: ".modal-container .select-kit-header-wrapper",
|
assignee: ".modal-container .select-kit-header-wrapper",
|
||||||
|
|
Loading…
Reference in New Issue