Skip to content

Commit 7896ce4

Browse files
feat: including return url in the cookie prefs feature tests
1 parent d244b30 commit 7896ce4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

features/step_definitions/cookie_preferences_steps.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
expect(page).to have_text("We'd also like to use additional cookies")
55
expect(page).to have_no_text("It looks like you have JavaScript turned off.")
66
expect(page).to have_link("find out more about the cookies we use", href: "/about-us/information/how-we-use-cookies/")
7-
expect(page).to have_link("Choose cookies", href: "/cookie-preferences")
7+
expect(page).to have_link("Choose cookies", href: "/cookie-preferences/?ReturnUrl=#{CGI.escape(current_url)}")
88
end

0 commit comments

Comments
 (0)