OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Fix inline create button selection in specs
Benjamin Bädorfcf3dda7b7458
diff --git a/frontend/src/app/features/work-packages/components/wp-inline-create/wp-inline-create.component.html b/frontend/src/app/features/work-packages/components/wp-inline-create/wp-inline-create.component.htmlindex 79d231597cd..eb54f32740b 100644--- a/frontend/src/app/features/work-packages/components/wp-inline-create/wp-inline-create.component.html+++ b/frontend/src/app/features/work-packages/components/wp-inline-create/wp-inline-create.component.html@@ -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>diff --git a/spec/support/components/work_packages/relations.rb b/spec/support/components/work_packages/relations.rbindex bfdb863480f..5c56e323936 100644--- a/spec/support/components/work_packages/relations.rb+++ b/spec/support/components/work_packages/relations.rb@@ -164,7 +164,7 @@ module Componentsdef 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!