File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed
admin/assets/javascripts/discourse/routes Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1
1
import Route from "@ember/routing/route" ;
2
2
3
3
export default class UpgradeIndex extends Route {
4
- model ( ) {
5
- return this . modelFor ( "update" ) ;
4
+ async model ( ) {
5
+ const model = this . modelFor ( "update" ) ;
6
+ await this . loadRepos ( model ) ;
7
+ return model ;
6
8
}
7
9
8
10
async loadRepos ( list ) {
9
11
for ( const repo of list ) {
10
12
await repo . findLatest ( ) ;
11
13
}
12
14
}
13
-
14
- setupController ( controller , model ) {
15
- super . setupController ( ...arguments ) ;
16
- this . loadRepos ( model ) ;
17
- }
18
15
}
Original file line number Diff line number Diff line change 8
8
9
9
before { sign_in ( admin ) }
10
10
11
- xit "displays the admin update page with the right repositories " do
11
+ it "displays the admin update page with the right respositories " do
12
12
visit ( "/admin/update" )
13
13
14
14
expect ( page ) . to have_css ( "h3" , exact_text : I18n . t ( "js.admin.docker.update_title" ) )
17
17
expect ( page ) . to have_css (
18
18
"tr.repo .d-admin-row__overview-about a[href='https://meta.discourse.org/t/12655']" ,
19
19
)
20
- ensure
21
- puts page . html if ENV [ "CI" ]
22
20
end
23
21
end
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
3
RSpec . describe "Core features" , type : :system do
4
+ # TODO: Stop skipping when shared example is available in stable
5
+ next if Discourse . git_branch == "stable"
6
+
4
7
before { enable_current_plugin }
5
8
6
9
it_behaves_like "having working core features"
You can’t perform that action at this time.
0 commit comments