fix wrong team planner spec expectation

The default filter on team planner is "status all" which includes closed work packages. So before any new filter is applied, a closed bug is expected to be visible
pull/10461/head
ulferts 3 years ago
parent 27b05b3a56
commit ef465f8f20
No known key found for this signature in database
GPG Key ID: A205708DE1284017
  1. 10
      modules/team_planner/spec/features/team_planner_spec.rb

@ -154,7 +154,7 @@ describe 'Team planner', type: :feature, js: true do
team_planner.within_lane(other_user) do
team_planner.expect_event other_task
team_planner.expect_event other_bug
team_planner.expect_event closed_bug, present: false
team_planner.expect_event closed_bug
end
# Add filter for type task
@ -191,7 +191,7 @@ describe 'Team planner', type: :feature, js: true do
team_planner.expect_empty_state
team_planner.expect_assignee(user, present: false)
team_planner.expect_assignee(other_user, present: false)
retry_block do
team_planner.click_add_user
page.find('[data-qa-selector="tp-add-assignee"] input')
@ -201,7 +201,7 @@ describe 'Team planner', type: :feature, js: true do
team_planner.expect_empty_state(present: false)
team_planner.expect_assignee(user)
team_planner.expect_assignee(other_user, present: false)
retry_block do
team_planner.click_add_user
page.find('[data-qa-selector="tp-add-assignee"] input')
@ -243,11 +243,11 @@ describe 'Team planner', type: :feature, js: true do
end
expect(page).to have_selector('.ng-option-disabled', text: "No items found")
retry_block do
team_planner.select_user_to_add user.name
end
team_planner.expect_assignee(user)
retry_block do

Loading…
Cancel
Save