diff --git a/spec/helpers/dropdown/people_export_spec.rb b/spec/helpers/dropdown/people_export_spec.rb index 6b7508a3..26844b1c 100644 --- a/spec/helpers/dropdown/people_export_spec.rb +++ b/spec/helpers/dropdown/people_export_spec.rb @@ -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' @@ -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' @@ -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' @@ -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' @@ -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' diff --git a/spec/regressions/event/participations_contact_datas_controller_spec.rb b/spec/regressions/event/participations_contact_datas_controller_spec.rb index c1faa32b..57d52e5a 100644 --- a/spec/regressions/event/participations_contact_datas_controller_spec.rb +++ b/spec/regressions/event/participations_contact_datas_controller_spec.rb @@ -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