Skip to content

Commit

Permalink
Fix user privacy spec after changes in the translations
Browse files Browse the repository at this point in the history
  • Loading branch information
ahukkanen committed Feb 16, 2024
1 parent 921df18 commit 4f92080
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/system/user_privacy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@

expect(page).to have_content("Make your profile public")
expect(page).to have_content(
"In order to perform any public actions on this platform, you need to make your profile public. This means that a public profile about you will be provided on this platform where other people can see the following information about you:"
"If you want to perform public activities on this platform, you must create a public profile. This means that other participants will see your name and nickname alongside your public activity on this platform, such as the proposals or comments you have submitted. The public profile displays the following information about you:"
)

find("#publish_account_agree_public_profile").check
Expand Down Expand Up @@ -217,7 +217,7 @@

expect(page).to have_content("Make your profile public")
expect(page).to have_content(
"In order to perform any public actions on this platform, you need to make your profile public. This means that a public profile about you will be provided on this platform where other people can see the following information about you:"
"If you want to perform public activities on this platform, you must create a public profile. This means that other participants will see your name and nickname alongside your public activity on this platform, such as the proposals or comments you have submitted. The public profile displays the following information about you:"
)

find("#publish_account_agree_public_profile").check
Expand Down Expand Up @@ -261,7 +261,7 @@

expect(page).to have_content("Make your profile public")
expect(page).to have_content(
"In order to perform any public actions on this platform, you need to make your profile public. This means that a public profile about you will be provided on this platform where other people can see the following information about you:"
"If you want to perform public activities on this platform, you must create a public profile. This means that other participants will see your name and nickname alongside your public activity on this platform, such as the proposals or comments you have submitted. The public profile displays the following information about you:"
)

find("#publish_account_agree_public_profile").check
Expand Down Expand Up @@ -303,7 +303,7 @@

expect(page).to have_content("Make your profile public")
expect(page).to have_content(
"In order to perform any public actions on this platform, you need to make your profile public. This means that a public profile about you will be provided on this platform where other people can see the following information about you:"
"If you want to perform public activities on this platform, you must create a public profile. This means that other participants will see your name and nickname alongside your public activity on this platform, such as the proposals or comments you have submitted. The public profile displays the following information about you:"
)

find("#publish_account_agree_public_profile").check
Expand Down Expand Up @@ -749,8 +749,8 @@
context "when public user" do
it "renders a button to request access" do
user.update(published_at: Time.current)
expect(page).to have_content(collaborative_draft.title)
click_link collaborative_draft.title
expect(page).to have_content(translated(collaborative_draft.title))
click_link translated(collaborative_draft.title)
within ".view-side" do
expect(page).to have_content("Version number")
expect(page).to have_css(".button.expanded.button--sc.mt-s", text: "REQUEST ACCESS")
Expand All @@ -763,7 +763,7 @@
it "doesn't render the edit button" do
author.update(published_at: nil)
sign_in author, scope: :user
click_link "<script>alert(\"TITLE\");</script> #{collaborative_draft.title["en"]}"
click_link translated(collaborative_draft.title)

expect(page).not_to have_link("Edit collaborative draft")
end
Expand Down

0 comments on commit 4f92080

Please sign in to comment.