Fix inline create button selection in specs

pull/10484/head
Benjamin Bädorf 3 years ago
parent 003498f395
commit cf3dda7b74
No known key found for this signature in database
GPG Key ID: 069CA2D117AB5CCF
  1. 2
      frontend/src/app/features/work-packages/components/wp-inline-create/wp-inline-create.component.html
  2. 2
      spec/support/components/work_packages/relations.rb

@ -15,6 +15,7 @@
(click)="handleAddRowClick()"
[attr.aria-label]="text.create"
aria-haspopup="true"
data-qa-selector="op-wp-inline-create"
>
<span class="spot-icon spot-icon_add"></span>
<span [textContent]="text.create"></span>
@ -26,6 +27,7 @@
(click)="handleReferenceClick()"
[attr.aria-label]="text.create"
aria-haspopup="true"
data-qa-selector="op-wp-inline-create-reference"
>
<span class="spot-icon spot-icon_link"></span>
<span [textContent]="text.reference"></span>

@ -164,7 +164,7 @@ module Components
def inline_create_child(subject_text)
container = find('.wp-relations--children')
scroll_to_and_click(container.find('.wp-inline-create-button-row .wp-inline-create--add-link'))
scroll_to_and_click(container.find('[data-qa-selector="op-wp-inline-create"]'))
subject = ::EditField.new(container, 'subject')
subject.expect_active!

Loading…
Cancel
Save