DEV: Skip core features specs on stable (#269)

The shared example is not available in stable yet
This commit is contained in:
Alan Guo Xiang Tan 2025-04-23 09:55:45 +08:00
parent d5f5e93db1
commit 6e4e95ef1a
No known key found for this signature in database
GPG Key ID: 286D2AB58F8C86B6
2 changed files with 5 additions and 10 deletions

View File

@ -1,8 +1,10 @@
import Route from "@ember/routing/route";
export default class UpgradeIndex extends Route {
model() {
return this.modelFor("update");
async model() {
const model = this.modelFor("update");
await this.loadRepos(model);
return model;
}
async loadRepos(list) {
@ -10,9 +12,4 @@ export default class UpgradeIndex extends Route {
await repo.findLatest();
}
}
setupController(controller, model) {
super.setupController(...arguments);
this.loadRepos(model);
}
}

View File

@ -8,7 +8,7 @@ RSpec.describe "Admin update", type: :system do
before { sign_in(admin) }
xit "displays the admin update page with the right repositories" do
it "displays the admin update page with the right respositories" do
visit("/admin/update")
expect(page).to have_css("h3", exact_text: I18n.t("js.admin.docker.update_title"))
@ -17,7 +17,5 @@ RSpec.describe "Admin update", type: :system do
expect(page).to have_css(
"tr.repo .d-admin-row__overview-about a[href='https://meta.discourse.org/t/12655']",
)
ensure
puts page.html if ENV["CI"]
end
end