DEV: Drop /theme-qunit from smoke test (#23562)

We will soon be dropping support for `/theme-qunit` in production, so this will start failing if we don't remove it. Plus, we now have system specs which verify the end-to-end functionality of the Theme QUnit system.

This was the last thing which was using the legacy `run-qunit` script, so that can also be dropped.
This commit is contained in:
David Taylor
2023-09-13 16:14:27 +01:00
committed by GitHub
parent ef0a049b87
commit e0daacf3ef
2 changed files with 0 additions and 356 deletions

View File

@ -74,21 +74,4 @@ task "smoke:test" do
end
raise "FAILED" if results !~ /ALL PASSED/
api_key = ENV["ADMIN_API_KEY"]
api_username = ENV["ADMIN_API_USERNAME"]
theme_url = ENV["SMOKE_TEST_THEME_URL"]
next if api_key.blank? && api_username.blank? && theme_url.blank?
puts "Running QUnit tests for theme #{theme_url.inspect} using API key #{api_key[0..3]}... and username #{api_username.inspect}"
query_params = { seed: Random.new.seed, theme_url: theme_url, hidepassed: 1, report_requests: 1 }
url += "/" if !url.end_with?("/")
full_url = "#{url}theme-qunit?#{query_params.to_query}"
timeout = 1000 * 20
sh("node", "#{Rails.root}/test/run-qunit.js", full_url, timeout.to_s)
raise "THEME TESTS FAILED!" if !$?.success?
end