Skip to content

Commit

Permalink
fix people manager relation spec
Browse files Browse the repository at this point in the history
  • Loading branch information
njaeggi committed Dec 1, 2023
1 parent 5e8fb12 commit c880562
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions spec/features/people_manager_relation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

expect(page).to have_content 'Bottom Member'

find('.typeahead.dropdown-menu li').click
find('ul[role="listbox"] li[role="option"]').click

expect do
all('form button[type="submit"]').last.click
Expand Down Expand Up @@ -74,7 +74,7 @@

expect(page).to have_content 'Bottom Member'

find('.typeahead.dropdown-menu li').click
find('ul[role="listbox"] li[role="option"]').click

expect do
all('form button[type="submit"]').last.click
Expand Down Expand Up @@ -102,15 +102,15 @@

expect(page).to have_content 'Bottom Member'

find('.typeahead.dropdown-menu li').click
find('ul[role="listbox"] li[role="option"]').click

find('a.add_nested_fields[data-association="people_managers"]').click

find('#people_managers_fields input').set('Bottom Lea')

expect(page).to have_content 'Bottom Leader'

find('.typeahead.dropdown-menu li').click
find('ul[role="listbox"] li[role="option"]').click

expect do
all('form button[type="submit"]').last.click
Expand All @@ -134,7 +134,7 @@

expect(page).to have_content 'Bottom Leader'

find('.typeahead.dropdown-menu li').click
find('ul[role="listbox"] li[role="option"]').click

expect do
all('form button[type="submit"]').last.click
Expand All @@ -158,7 +158,7 @@

expect(page).to have_content 'Bottom Leader'

find('.typeahead.dropdown-menu li').click
find('ul[role="listbox"] li[role="option"]').click

expect do
all('form button[type="submit"]').last.click
Expand All @@ -182,7 +182,7 @@

expect(page).to have_content 'Bob Foo'

find('.typeahead.dropdown-menu li').click
find('ul[role="listbox"] li[role="option"]').click

expect do
all('form button[type="submit"]').last.click
Expand All @@ -209,7 +209,7 @@

find('#people_managers_fields input').set('Bottom Le')

find('.typeahead.dropdown-menu li').click
find('ul[role="listbox"] li[role="option"]').click

expect do
all('form button[type="submit"]').last.click
Expand All @@ -232,7 +232,7 @@

find('#people_manageds_fields input').set('Bottom Le')

find('.typeahead.dropdown-menu li').click
find('ul[role="listbox"] li[role="option"]').click

expect do
all('form button[type="submit"]').last.click
Expand Down Expand Up @@ -265,7 +265,7 @@

find('#people_manageds_fields input').set('Top Leader')

expect(page).to_not have_css '.typeahead.dropdown-menu li'
expect(page).to_not have_css 'ul[role="listbox"] li[role="option"]'
end
end
end
Expand Down

0 comments on commit c880562

Please sign in to comment.