mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
Compile JS before testing caching
That avoids flakiness.
This commit is contained in:
@@ -14,9 +14,12 @@ describe "Shops caching", caching: true do
|
||||
}
|
||||
|
||||
describe "caching enterprises AMS data" do
|
||||
xit "caches data for all enterprises, with the provided options" do
|
||||
pending "#11010"
|
||||
it "caches data for all enterprises, with the provided options" do
|
||||
# Trigger lengthy tasks like JS compilation before testing caching:
|
||||
visit shops_path
|
||||
Rails.cache.clear
|
||||
|
||||
# Now run the test, hopefully in a timely manner:
|
||||
visit shops_path
|
||||
|
||||
key, options = CacheService::FragmentCaching.ams_shops
|
||||
|
||||
Reference in New Issue
Block a user