Skip to content

Commit

Permalink
fix some dropdown specs
Browse files Browse the repository at this point in the history
  • Loading branch information
njaeggi committed Dec 4, 2023
1 parent 0775431 commit f068a6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions spec/helpers/dropdown/people_export_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def can?(*args)
expect(dropdown).to have_content 'Export'
expect(dropdown).to have_selector 'a'
expect(dropdown).to have_content 'CSV'
expect(dropdown).to have_selector 'ul.dropdown-menu > li.dropdown-submenu'
expect(dropdown).to have_selector 'ul.dropdown-menu > .dropdown > ul.dropdown-menu.submenu'
expect(dropdown).not_to have_content 'NDS-Kurs'
expect(dropdown).not_to have_content 'NDS-Lager'
expect(dropdown).not_to have_content 'SLRG-Kurs'
Expand All @@ -40,7 +40,7 @@ def can?(*args)
expect(dropdown).to have_content 'Export'
expect(dropdown).to have_selector 'a'
expect(dropdown).to have_content 'CSV'
expect(dropdown).to have_selector 'ul.dropdown-menu > li.dropdown-submenu'
expect(dropdown).to have_selector 'ul.dropdown-menu > .dropdown > ul.dropdown-menu.submenu'
expect(dropdown).not_to have_content 'NDS-Kurs'
expect(dropdown).not_to have_content 'NDS-Lager'
expect(dropdown).not_to have_content 'SLRG-Kurs'
Expand All @@ -52,7 +52,7 @@ def can?(*args)
expect(dropdown).to have_selector 'ul.dropdown-menu'
expect(dropdown).to have_selector 'a'
expect(dropdown).to have_content 'CSV'
expect(dropdown).to have_selector 'ul.dropdown-menu > li.dropdown-submenu'
expect(dropdown).to have_selector 'ul.dropdown-menu > .dropdown > ul.dropdown-menu.submenu'
expect(dropdown).to have_content 'NDS-Kurs'
expect(dropdown).to have_content 'NDS-Lager'
expect(dropdown).to have_content 'SLRG-Kurs'
Expand All @@ -67,7 +67,7 @@ def can?(*args)
expect(dropdown).to have_selector 'ul.dropdown-menu'
expect(dropdown).to have_selector 'a'
expect(dropdown).to have_content 'CSV'
expect(dropdown).to have_selector 'ul.dropdown-menu > li.dropdown-submenu'
expect(dropdown).to have_selector 'ul.dropdown-menu > .dropdown > ul.dropdown-menu.submenu'
expect(dropdown).not_to have_content 'NDS-Kurs'
expect(dropdown).to have_content 'NDS-Lager'
expect(dropdown).not_to have_content 'SLRG-Kurs'
Expand All @@ -83,7 +83,7 @@ def can?(*args)
expect(dropdown).to have_selector 'ul.dropdown-menu'
expect(dropdown).to have_selector 'a'
expect(dropdown).to have_content 'CSV'
expect(dropdown).to have_selector 'ul.dropdown-menu > li.dropdown-submenu'
expect(dropdown).to have_selector 'ul.dropdown-menu > .dropdown > ul.dropdown-menu.submenu'
expect(dropdown).to have_content 'NDS-Kurs'
expect(dropdown).not_to have_content 'NDS-Lager'
expect(dropdown).to have_content 'SLRG-Kurs'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

is_expected.to render_template(:edit)

expect(dom).to have_selector('.alert-error li', text: 'J+S-Nummer muss ausgefüllt werden')
expect(dom).to have_selector('.alert-danger li', text: 'J+S-Nummer muss ausgefüllt werden')

end

Expand Down

0 comments on commit f068a6d

Please sign in to comment.