Disable unnecessary JS usage on comments/topics specs
This commit is contained in:
@@ -5,11 +5,10 @@ feature 'Commenting topics from proposals' do
|
|||||||
let(:user) { create :user }
|
let(:user) { create :user }
|
||||||
let(:proposal) { create :proposal }
|
let(:proposal) { create :proposal }
|
||||||
|
|
||||||
scenario 'Index', :js do
|
scenario 'Index' do
|
||||||
|
|
||||||
community = proposal.community
|
community = proposal.community
|
||||||
topic = create(:topic, community: community)
|
topic = create(:topic, community: community)
|
||||||
3.times { create(:comment, commentable: topic) }
|
create_list(:comment, 3, commentable: topic)
|
||||||
|
|
||||||
visit community_topic_path(community, topic)
|
visit community_topic_path(community, topic)
|
||||||
|
|
||||||
@@ -23,7 +22,7 @@ feature 'Commenting topics from proposals' do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario 'Show', :js do
|
scenario 'Show' do
|
||||||
community = proposal.community
|
community = proposal.community
|
||||||
topic = create(:topic, community: community)
|
topic = create(:topic, community: community)
|
||||||
parent_comment = create(:comment, commentable: topic)
|
parent_comment = create(:comment, commentable: topic)
|
||||||
@@ -560,11 +559,10 @@ feature 'Commenting topics from budget investments' do
|
|||||||
let(:user) { create :user }
|
let(:user) { create :user }
|
||||||
let(:investment) { create :budget_investment }
|
let(:investment) { create :budget_investment }
|
||||||
|
|
||||||
scenario 'Index', :js do
|
scenario 'Index' do
|
||||||
|
|
||||||
community = investment.community
|
community = investment.community
|
||||||
topic = create(:topic, community: community)
|
topic = create(:topic, community: community)
|
||||||
3.times { create(:comment, commentable: topic) }
|
create_list(:comment, 3, commentable: topic)
|
||||||
|
|
||||||
visit community_topic_path(community, topic)
|
visit community_topic_path(community, topic)
|
||||||
|
|
||||||
@@ -578,7 +576,7 @@ feature 'Commenting topics from budget investments' do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario 'Show', :js do
|
scenario 'Show' do
|
||||||
community = investment.community
|
community = investment.community
|
||||||
topic = create(:topic, community: community)
|
topic = create(:topic, community: community)
|
||||||
parent_comment = create(:comment, commentable: topic)
|
parent_comment = create(:comment, commentable: topic)
|
||||||
|
|||||||
Reference in New Issue
Block a user