Skip to content

Commit

Permalink
test:update conference registration system test
Browse files Browse the repository at this point in the history
  • Loading branch information
BarbaraOliveira13 committed Apr 17, 2024
1 parent 2c396dc commit 0952174
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module Decidim
module Conferences
describe ConferencesController do
describe RegistrationTypesControllerController do
routes { Decidim::Conferences::Engine.routes }

let(:organization) { create(:organization) }
Expand Down
13 changes: 13 additions & 0 deletions decidim-conferences/spec/system/conference_registrations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,19 @@ def visit_conference_registration_type
expect(page).to have_css("button[disabled]", text: "Registration", count: 4)
end
end

context "and there is no registrations types" do
let!(:registration_types) { [] }

it "allows to register" do
visit_conference
within ".conference__hero" do
expect(page).to have_content "Register"
click_on "Register"
expect(page).to have_content "CHOOSE YOUR REGISTRATION OPTION:"
end
end
end
end

context "and the user is going to the conference" do
Expand Down

0 comments on commit 0952174

Please sign in to comment.