From 153fbb03c760df1bbdb3cadc7f06debf39200caa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Tue, 19 Apr 2022 14:44:21 +0200 Subject: [PATCH] Update add assignee selector in more specs --- spec/support/components/work_packages/relations.rb | 2 +- spec/support/pages/work_packages/work_packages_table.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/support/components/work_packages/relations.rb b/spec/support/components/work_packages/relations.rb index 5c56e32393..2b87559adf 100644 --- a/spec/support/components/work_packages/relations.rb +++ b/spec/support/components/work_packages/relations.rb @@ -176,7 +176,7 @@ module Components next if page.has_selector?('.wp-relations--children .ng-input input') SeleniumHubWaiter.wait - find('.wp-inline-create--reference-link', text: I18n.t('js.relation_buttons.add_existing_child')).click + find('[data-qa-selector="op-wp-inline-create-reference"]', text: I18n.t('js.relation_buttons.add_existing_child')).click # Security check to be sure that the autocompleter has finished loading page.find '.wp-relations--children .ng-input input' diff --git a/spec/support/pages/work_packages/work_packages_table.rb b/spec/support/pages/work_packages/work_packages_table.rb index b8497c0049..27f75fb186 100644 --- a/spec/support/pages/work_packages/work_packages_table.rb +++ b/spec/support/pages/work_packages/work_packages_table.rb @@ -134,7 +134,7 @@ module Pages # there is a delay on travis where inline create can be clicked. sleep 3 - container.find('.wp-inline-create--add-link').click + container.find('[data-qa-selector="op-wp-inline-create"]').click expect(container).to have_selector('.wp-inline-create-row', wait: 10) end