diff --git a/spec/system/admin_update_spec.rb b/spec/system/admin_update_spec.rb index 655395a..6b9f883 100644 --- a/spec/system/admin_update_spec.rb +++ b/spec/system/admin_update_spec.rb @@ -4,20 +4,17 @@ RSpec.describe "Admin update" do fab!(:admin) - let(:admin_update_page) { PageObjects::Pages::AdminUpdate.new } before { sign_in(admin) } - xit "displays the admin update page with the right repositories" do + it "displays the admin update page with the right repositories" do visit("/admin/update") - expect(page).to have_css("h3", exact_text: I18n.t("js.admin.docker.update_title")) + expect(page).to have_css("h1", exact_text: I18n.t("js.admin.docker.update_title")) expect(page).to have_css("tr.repo .d-table__overview-name", exact_text: "Discourse") - expect(page).to have_css("tr.repo .d-table__overview-name", exact_text: "Docker Manager") + expect(page).to have_css("tr.repo .d-table__overview-name", text: /\ADocker[ _]manager\z/) expect(page).to have_css( "tr.repo .d-table__overview-about a[href='https://meta.discourse.org/t/12655']", ) - ensure - puts page.html if ENV["CI"] end end