decidim-proposals/spec/features/proposals_spec.rb in decidim-0.3.2 vs decidim-proposals/spec/features/proposals_spec.rb in decidim-0.4.0

- old
+ new

@@ -85,11 +85,11 @@ expect(page).to have_content(category.name["en"]) expect(page).to have_content(scope.name) expect(page).to have_content(user.name) end - context "when geocoding is enabled" do + context "when geocoding is enabled", :serves_map do let!(:feature) do create(:proposal_feature, :with_creation_enabled, :with_geocoding_enabled, manifest: manifest, @@ -101,10 +101,13 @@ click_link "New proposal" within ".new_proposal" do fill_in :proposal_title, with: "Oriol for president" fill_in :proposal_body, with: "He will solve everything" + + check :proposal_has_address + fill_in :proposal_address, with: address select category.name["en"], from: :proposal_category_id select scope.name, from: :proposal_scope_id find("*[type=submit]").click @@ -147,11 +150,11 @@ expect(page).to have_content(category.name["en"]) expect(page).to have_content(scope.name) expect(page).to have_content(user_group.name) end - context "when geocoding is enabled" do + context "when geocoding is enabled", :serves_map do let!(:feature) do create(:proposal_feature, :with_creation_enabled, :with_geocoding_enabled, manifest: manifest, @@ -163,9 +166,12 @@ click_link "New proposal" within ".new_proposal" do fill_in :proposal_title, with: "Oriol for president" fill_in :proposal_body, with: "He will solve everything" + + check :proposal_has_address + fill_in :proposal_address, with: address select category.name["en"], from: :proposal_category_id select scope.name, from: :proposal_scope_id select user_group.name, from: :proposal_user_group_id