Skip to content

Commit cb01c49

Browse files
authored
DEV: Restore skipped admin update spec (#320)
1 parent 428b764 commit cb01c49

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

spec/system/admin_update_spec.rb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,17 @@
44

55
RSpec.describe "Admin update" do
66
fab!(:admin)
7-
let(:admin_update_page) { PageObjects::Pages::AdminUpdate.new }
87

98
before { sign_in(admin) }
109

11-
xit "displays the admin update page with the right repositories" do
10+
it "displays the admin update page with the right repositories" do
1211
visit("/admin/update")
1312

14-
expect(page).to have_css("h3", exact_text: I18n.t("js.admin.docker.update_title"))
13+
expect(page).to have_css("h1", exact_text: I18n.t("js.admin.docker.update_title"))
1514
expect(page).to have_css("tr.repo .d-table__overview-name", exact_text: "Discourse")
16-
expect(page).to have_css("tr.repo .d-table__overview-name", exact_text: "Docker Manager")
15+
expect(page).to have_css("tr.repo .d-table__overview-name", text: /\ADocker[ _]manager\z/)
1716
expect(page).to have_css(
1817
"tr.repo .d-table__overview-about a[href='https://meta.discourse.org/t/12655']",
1918
)
20-
ensure
21-
puts page.html if ENV["CI"]
2219
end
2320
end

0 commit comments

Comments
 (0)