Compile JS before testing caching

That avoids flakiness.
This commit is contained in:
Maikel Linke
2023-07-27 09:40:08 +10:00
parent f9589b8b23
commit f7d5217ef6

View File

@@ -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