Change URLs to use the new domain
This commit is contained in:
@@ -64,14 +64,14 @@ describe "Admin budget phases" do
|
||||
expect(page).to have_content "Main call to action (optional)"
|
||||
|
||||
fill_in "Text on the link", with: "Link on the phase"
|
||||
fill_in "The link takes you to (add a link)", with: "https://consulproject.org"
|
||||
fill_in "The link takes you to (add a link)", with: "https://consuldemocracy.org"
|
||||
click_button "Save changes"
|
||||
|
||||
expect(page).to have_content("Changes saved")
|
||||
|
||||
visit budgets_path
|
||||
|
||||
expect(page).to have_link("Link on the phase", href: "https://consulproject.org")
|
||||
expect(page).to have_link("Link on the phase", href: "https://consuldemocracy.org")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -299,13 +299,13 @@ describe "Admin budgets", :admin do
|
||||
expect(page).to have_content("Main call to action (optional)")
|
||||
|
||||
fill_in "Text on the link", with: "Participate now"
|
||||
fill_in "The link takes you to (add a link)", with: "https://consulproject.org"
|
||||
fill_in "The link takes you to (add a link)", with: "https://consuldemocracy.org"
|
||||
click_button "Update Budget"
|
||||
|
||||
expect(page).to have_content "Participatory budget updated successfully"
|
||||
|
||||
visit budgets_path
|
||||
expect(page).to have_link("Participate now", href: "https://consulproject.org")
|
||||
expect(page).to have_link("Participate now", href: "https://consuldemocracy.org")
|
||||
end
|
||||
|
||||
scenario "Changing name for current locale will update the slug if budget is in draft phase" do
|
||||
|
||||
@@ -9,7 +9,7 @@ describe "Budgets wizard, first step", :admin do
|
||||
|
||||
fill_in "Name", with: "M30 - Summer campaign"
|
||||
fill_in "Text on the link", with: "Participate now!"
|
||||
fill_in "The link takes you to (add a link)", with: "https://consulproject.org"
|
||||
fill_in "The link takes you to (add a link)", with: "https://consuldemocracy.org"
|
||||
fill_in "Name", with: "M30 - Summer campaign"
|
||||
click_button "Continue to groups"
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ require "rails_helper"
|
||||
|
||||
describe "Admin edit translatable records", :admin do
|
||||
before do
|
||||
translatable.main_link_url = "https://consulproject.org" if translatable.is_a?(Budget::Phase)
|
||||
translatable.main_link_url = "https://consuldemocracy.org" if translatable.is_a?(Budget::Phase)
|
||||
translatable.update!(attributes)
|
||||
end
|
||||
|
||||
@@ -123,7 +123,7 @@ describe "Admin edit translatable records", :admin do
|
||||
let(:translatable) { create(:budget_investment) }
|
||||
|
||||
context "Input field" do
|
||||
let(:translatable) { create(:budget, main_link_url: "https://consulproject.org") }
|
||||
let(:translatable) { create(:budget, main_link_url: "https://consuldemocracy.org") }
|
||||
|
||||
scenario "Shows validation erros" do
|
||||
visit edit_admin_budget_path(translatable)
|
||||
|
||||
Reference in New Issue
Block a user