@ -261,9 +261,7 @@ RSpec.feature 'Work package timeline navigation', js: true, selenium: true do
wp_timeline.expect_timeline_element(wp_cat2)
end
split_view = wp_table.open_split_view(wp_cat1)
split_view.switch_to_tab tab: :relations
wp_table.open_split_view(wp_cat1)
relations.remove_relation(wp_cat2)
# Relation should be removed in TL
@ -60,7 +60,7 @@ module Components
def hover_action(relatable, action)
retry_block do
# Focus type edit to expose buttons
span = page.find(".relation-row-#{relatable.id} .relation-row--type")
span = page.find(".relation-row-#{relatable.id} .relation-row--type", wait: 20)
scroll_to_element(span)
page.driver.browser.action.move_to(span.native).perform
@ -171,7 +171,7 @@ module Pages
def row(work_package)
table_container.find(".wp-row-#{work_package.id}")
table_container.find(".wp-row-#{work_package.id}-table")
def edit_field(work_package, attribute)
@ -44,7 +44,9 @@ module Pages
def expect_row_count(num)
expect(page).to have_selector('.wp-timeline-cell', count: num)
within(timeline_container) do
def expect_work_package_listed(*work_packages)