DEV: Add debugging info to figure out why system test is failing on CI (#225)

This commit is contained in:
Alan Guo Xiang Tan 2024-07-11 10:08:11 +08:00 committed by GitHub
parent fe25a76fe3
commit f3eda0a1a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,12 @@ RSpec.describe "Admin update", type: :system do
it "displays the admin update page with the right respositories" do
visit("/admin/update")
# We are getting a blank page on CI so adding debugging steps to figure out why
if ENV["CI"]
expect(page).to have_current_path("/admin/update")
puts page.html
end
expect(page).to have_css("h3", exact_text: I18n.t("js.admin.docker.update_title"))
expect(page).to have_css("tr.repo .repo__name", exact_text: "Discourse")
expect(page).to have_css("tr.repo .repo__name", exact_text: "Docker Manager")