Attempt to stabilise test

pull/6870/head
Henriette Dinger 6 years ago
parent 0db7595c2e
commit 9398c1111a
  1. 6
      spec/features/work_packages/select_work_package_row_spec.rb

@ -95,9 +95,11 @@ describe 'Select work package row', type: :feature, js: true, selenium: true do
end
def check_row_selection_state(row_index, state = true)
selector = ".work-package-table--container tr:nth-of-type(#{row_index}).issue.-checked"
selector = ".work-package-table--container tr:nth-of-type(#{row_index}).issue"
checked_selector = ".work-package-table--container tr:nth-of-type(#{row_index}).issue.-checked"
expect(page).to (state ? have_selector(selector) : have_no_selector(selector))
expect(page).to have_selector(selector)
expect(page).to (state ? have_selector(checked_selector) : have_no_selector(checked_selector))
end
def check_all

Loading…
Cancel
Save