Unify not logged user comments specs

Since commit de1bfd44 'Write a comment' text is deleted.
We are changing this text for the current text 'Leave your comment'
or 'Leave your answer'
This commit is contained in:
taitus
2023-12-13 11:32:51 +01:00
parent 45d82d6e6b
commit 0f2f79ba99
9 changed files with 43 additions and 110 deletions

View File

@@ -202,22 +202,6 @@ describe "Commenting topics from proposals" do
expect(page).to have_current_path(/#comments/, url: true)
end
describe "Not logged user" do
scenario "can not see comments forms" do
community = proposal.community
topic = create(:topic, community: community)
create(:comment, commentable: topic)
visit community_topic_path(community, topic)
expect(page).to have_content "You must sign in or sign up to leave a comment"
within("#comments") do
expect(page).not_to have_content "Write a comment"
expect(page).not_to have_content "Reply"
end
end
end
scenario "Create" do
community = proposal.community
topic = create(:topic, community: community)
@@ -751,22 +735,6 @@ describe "Commenting topics from budget investments" do
expect(page).to have_current_path(/#comments/, url: true)
end
describe "Not logged user" do
scenario "can not see comments forms" do
community = investment.community
topic = create(:topic, community: community)
create(:comment, commentable: topic)
visit community_topic_path(community, topic)
expect(page).to have_content "You must sign in or sign up to leave a comment"
within("#comments") do
expect(page).not_to have_content "Write a comment"
expect(page).not_to have_content "Reply"
end
end
end
scenario "Create" do
community = investment.community
topic = create(:topic, community: community)