Commit 5b5c7e04 authored by Stan Hu's avatar Stan Hu

Fix trending projects Spinach failure

The trending projects list is now pre-calculated. To make this work
with the Spinach test, we have to manually refresh the list.

Partial fix to #23378
parent 2ebc63dd
...@@ -128,6 +128,7 @@ Feature: Explore Projects ...@@ -128,6 +128,7 @@ Feature: Explore Projects
And project "Archive" has comments And project "Archive" has comments
And I sign in as a user And I sign in as a user
And project "Community" has comments And project "Community" has comments
And trending projects are refreshed
When I visit the explore trending projects When I visit the explore trending projects
Then I should see project "Community" Then I should see project "Community"
And I should not see project "Internal" And I should not see project "Internal"
......
...@@ -218,6 +218,10 @@ module SharedProject ...@@ -218,6 +218,10 @@ module SharedProject
2.times { create(:note_on_issue, project: project) } 2.times { create(:note_on_issue, project: project) }
end end
step 'trending projects are refreshed' do
TrendingProject.refresh!
end
step 'project "Shop" has labels: "bug", "feature", "enhancement"' do step 'project "Shop" has labels: "bug", "feature", "enhancement"' do
project = Project.find_by(name: "Shop") project = Project.find_by(name: "Shop")
create(:label, project: project, title: 'bug') create(:label, project: project, title: 'bug')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment