diff --git a/spec/features/work_packages/table/switch_types_spec.rb b/spec/features/work_packages/table/switch_types_spec.rb index 1da7e3fa7d..bc83bd3de6 100644 --- a/spec/features/work_packages/table/switch_types_spec.rb +++ b/spec/features/work_packages/table/switch_types_spec.rb @@ -292,6 +292,10 @@ describe 'Switching types in work package table', js: true do cf_edit_field.field_container.find('.wp-inline-edit--toggle-multiselect').click sel = cf_edit_field.input_element + + # Scroll to element so it is fully visible + scroll_to_element(sel) + sel.select "pineapple" sel.select "mushrooms" diff --git a/spec/support/components/work_packages/relations.rb b/spec/support/components/work_packages/relations.rb index 0090a42a94..826d5e1b4e 100644 --- a/spec/support/components/work_packages/relations.rb +++ b/spec/support/components/work_packages/relations.rb @@ -49,6 +49,7 @@ module Components retry_block do # Focus type edit to expose buttons span = page.find(".relation-row-#{relatable.id} .relation-row--type") + scroll_to_element(span) page.driver.browser.action.move_to(span.native).perform # Click the corresponding action button