Skip to content

Commit a138b27

Browse files
Merge pull request #676 from citizensadvice/chore/cookie-prefs-v0.3.0
Chore/cookie prefs v0.3.0
2 parents e0ba680 + 7896ce4 commit a138b27

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/lint_and_test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ jobs:
8787
CONTENTFUL_CDA_TOKEN: ${{ secrets.CONTENTFUL_CDA_TOKEN }}
8888
CONTENTFUL_SPACE_ID: ${{ secrets.CONTENTFUL_SPACE_ID }}
8989
CONTENTFUL_ENVIRONMENT_ID: ${{ secrets.CONTENTFUL_ENVIRONMENT_ID }}
90+
LOCAL_RETURN_HOST: "127.0.0.1"
9091
needs: lint
9192
steps:
9293
- name: "Checkout"

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ gem "citizens_advice_components",
4343

4444
gem "citizens_advice_cookie_preferences",
4545
github: "citizensadvice/cookie-preferences",
46-
tag: "v0.1.0"
46+
tag: "v0.3.0"
4747

4848
# The citizens_advice_components gem uses view component but we also use this to write
4949
# our app components so explicitly name it as an application dependency.

Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ GIT
2121

2222
GIT
2323
remote: https://github.com/citizensadvice/cookie-preferences.git
24-
revision: 387fcecdc9bf3e5508442b5e14abf7e1f8be921b
25-
tag: v0.1.0
24+
revision: ad7ed58fc4693bf88bb848826f7c5554317d004f
25+
tag: v0.3.0
2626
specs:
27-
citizens_advice_cookie_preferences (0.1.0)
27+
citizens_advice_cookie_preferences (0.3.0)
2828
citizens_advice_components (> 8.0.0)
2929
meta-tags
3030
rails (>= 7.1.0)

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)