Fix removing timeline relations

pull/6229/head
Oliver Günther 7 years ago
parent 37ad0bc2a9
commit e663486d1e
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 4
      spec/features/work_packages/timeline/timeline_navigation_spec.rb
  2. 2
      spec/support/components/work_packages/relations.rb
  3. 2
      spec/support/pages/work_packages_table.rb
  4. 4
      spec/support/pages/work_packages_timeline.rb

@ -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
end
def row(work_package)
table_container.find(".wp-row-#{work_package.id}")
table_container.find(".wp-row-#{work_package.id}-table")
end
def edit_field(work_package, attribute)

@ -44,7 +44,9 @@ module Pages
end
def expect_row_count(num)
expect(page).to have_selector('.wp-timeline-cell', count: num)
within(timeline_container) do
expect(page).to have_selector('.wp-timeline-cell', count: num)
end
end
def expect_work_package_listed(*work_packages)

Loading…
Cancel
Save