@@ -84,11 +84,18 @@ test('switching class properties tab less than 2.16 should retain', async functi
84
84
assert . equal ( currentURL ( ) , '/ember/2.11/classes/Ember.Component/properties' , 'navigated to v2.11 properties' ) ;
85
85
} ) ;
86
86
87
- test ( 'switching from class version less than 2.16 to class version 2.16 should reset to first module page' , async function ( assert ) {
87
+ test ( 'switching from class version less than 2.16 to class version 2.16 should reset to landing page' , async function ( assert ) {
88
88
await visit ( '/ember/2.7/classes/Ember.Component' ) ;
89
89
assert . equal ( currentURL ( ) , '/ember/2.7/classes/Ember.Component' , 'navigated to v2.7 class' ) ;
90
90
await selectChoose ( '.select-container' , '2.16' ) ;
91
- assert . equal ( currentURL ( ) , '/ember/2.16/modules/@ember%2Fapplication' , 'navigated to v2.16 application module' ) ;
91
+ assert . equal ( currentURL ( ) , '/ember/2.16' , 'navigated to v2.16 landing page' ) ;
92
+ } ) ;
93
+
94
+ test ( 'switching from class version less than 2.16 to class version 2.16 should retain if project is ember-data' , async function ( assert ) {
95
+ await visit ( '/ember-data/2.7/classes/DS.Adapter' ) ;
96
+ assert . equal ( currentURL ( ) , '/ember-data/2.7/classes/DS.Adapter' , 'navigated to v2.7 class' ) ;
97
+ await selectChoose ( '.select-container' , '2.16' ) ;
98
+ assert . equal ( currentURL ( ) , '/ember-data/2.16/classes/DS.Adapter' , 'navigated to v2.16 landing page' ) ;
92
99
} ) ;
93
100
94
101
test ( 'switching from class version 2.16 to class version less then 2.16 should reset to first module page' , async function ( assert ) {
@@ -97,3 +104,10 @@ test('switching from class version 2.16 to class version less then 2.16 should r
97
104
await selectChoose ( '.select-container' , '2.11' ) ;
98
105
assert . equal ( currentURL ( ) , '/ember/2.11/modules/ember' , 'navigated to v2.11 ember module' ) ;
99
106
} ) ;
107
+
108
+ test ( 'switching from class version 2.16 to class version less then 2.16 should retain if project is ember-data' , async function ( assert ) {
109
+ await visit ( '/ember-data/2.16/classes/DS.Adapter' ) ;
110
+ assert . equal ( currentURL ( ) , '/ember-data/2.16/classes/DS.Adapter' , 'navigated to v2.7 class' ) ;
111
+ await selectChoose ( '.select-container' , '2.11' ) ;
112
+ assert . equal ( currentURL ( ) , '/ember-data/2.11/classes/DS.Adapter' , 'navigated to v2.16 landing page' ) ;
113
+ } ) ;
0 commit comments