|
257 | 257 |
|
258 | 258 | context "when source form has Welsh language version with translated content" do |
259 | 259 | let(:source_form) do |
260 | | - form = create(:form, :live, :with_pages, pages_count: 2, available_languages: %w[en cy], support_phone: "01234 567890", support_url: "https://example.gov.uk/support", support_url_text: "Our English support site", declaration_text: "English declaration", payment_url: "https://www.pay.gov.uk") |
| 260 | + form = create(:form, :live, :with_pages, pages_count: 2, available_languages: %w[en cy], support_phone: "01234 567890", support_url: "https://example.gov.uk/support", support_url_text: "Our English support site", declaration_markdown: "English declaration", payment_url: "https://www.pay.gov.uk") |
261 | 261 | # Add an exit page condition to the first page |
262 | 262 | form.pages.first.answer_type = "selection" |
263 | 263 | form.pages.first.hint_text = "English hint text" |
|
284 | 284 | form.support_phone_cy = "0800 111 222" |
285 | 285 | form.support_url_cy = "https://example.com/cymorth" |
286 | 286 | form.support_url_text_cy = "Cael cymorth" |
287 | | - form.declaration_text_cy = "Rwy'n datgan bod hyn yn wir" |
| 287 | + form.declaration_markdown_cy = "Rwy'n datgan bod hyn yn wir" |
288 | 288 | form.what_happens_next_markdown_cy = "Byddwn yn cysylltu â chi" |
289 | 289 | form.payment_url_cy = "https://example.com/talu" |
290 | 290 | form.save! |
|
318 | 318 | expect(copied_welsh.content["support_phone"]).to eq("0800 111 222") |
319 | 319 | expect(copied_welsh.content["support_url"]).to eq("https://example.com/cymorth") |
320 | 320 | expect(copied_welsh.content["support_url_text"]).to eq("Cael cymorth") |
321 | | - expect(copied_welsh.content["declaration_text"]).to eq("Rwy'n datgan bod hyn yn wir") |
| 321 | + expect(copied_welsh.content["declaration_markdown"]).to eq("Rwy'n datgan bod hyn yn wir") |
322 | 322 | expect(copied_welsh.content["what_happens_next_markdown"]).to eq("Byddwn yn cysylltu â chi") |
323 | 323 | expect(copied_welsh.content["payment_url"]).to eq("https://example.com/talu") |
324 | 324 | end |
|
331 | 331 | expect(copied_form.support_phone_cy).to eq("0800 111 222") |
332 | 332 | expect(copied_form.support_url_cy).to eq("https://example.com/cymorth") |
333 | 333 | expect(copied_form.support_url_text_cy).to eq("Cael cymorth") |
334 | | - expect(copied_form.declaration_text_cy).to eq("Rwy'n datgan bod hyn yn wir") |
| 334 | + expect(copied_form.declaration_markdown_cy).to eq("Rwy'n datgan bod hyn yn wir") |
335 | 335 | expect(copied_form.what_happens_next_markdown_cy).to eq("Byddwn yn cysylltu â chi") |
336 | 336 | expect(copied_form.payment_url_cy).to eq("https://example.com/talu") |
337 | 337 |
|
|
0 commit comments