@@ -44,8 +44,9 @@ describe('Diff Scene', () => {
44
44
await jestPuppeteer . resetBrowser ( )
45
45
await page . setDefaultNavigationTimeout ( 120000 )
46
46
} )
47
- it ( 'loads the default scene (/diff/3.1)' , async ( ) => {
48
- await goToPage ( `${ BASE_URL } /diff/3.1` )
47
+
48
+ it ( 'loads the default scene (/3.1/diff)' , async ( ) => {
49
+ await goToPage ( `${ BASE_URL } /3.1/diff` )
49
50
const body = await page . $ ( 'body' )
50
51
51
52
// "Base" input element
@@ -106,9 +107,8 @@ describe('Diff Scene', () => {
106
107
}
107
108
} )
108
109
109
- it ( 'loads a comparison scene (/diff/3.1/4.0) and navigates from it' , async ( ) => {
110
- await goToPage ( `${ BASE_URL } /diff/3.1/4.0` )
111
-
110
+ it ( 'loads a comparison scene (/3.1/diff/4.0) and navigates from it' , async ( ) => {
111
+ await goToPage ( `${ BASE_URL } /3.1/diff/4.0` )
112
112
// "Base" input element
113
113
{
114
114
const baseInputElement = await page . $ ( baseInputSelector )
@@ -189,7 +189,7 @@ describe('Diff Scene', () => {
189
189
} )
190
190
191
191
it ( 'updates when a comparison is chosen or switched' , async ( ) => {
192
- await goToPage ( `${ BASE_URL } /diff/ 3.1` )
192
+ await goToPage ( `${ BASE_URL } /3.1/diff ` )
193
193
194
194
// "Base" input element
195
195
const baseInputElement = await page . $ ( baseInputSelector )
@@ -219,7 +219,7 @@ describe('Diff Scene', () => {
219
219
// Check the URL
220
220
// Would like to do this earlier, but not sure what to wait on
221
221
const compUrl = page . url ( )
222
- expect ( compUrl ) . toEqual ( `${ BASE_URL } /diff/ 3.1/4.0?sdk=py` )
222
+ expect ( compUrl ) . toEqual ( `${ BASE_URL } /3.1/diff /4.0?sdk=py` )
223
223
224
224
// Check the results
225
225
const diffResultCards = await page . $$ ( resultCardsSelector )
@@ -247,7 +247,7 @@ describe('Diff Scene', () => {
247
247
await page . waitForTimeout ( 150 )
248
248
249
249
const switchUrl = page . url ( )
250
- expect ( switchUrl ) . toEqual ( `${ BASE_URL } /diff/ 4.0/3.1?sdk=py` )
250
+ expect ( switchUrl ) . toEqual ( `${ BASE_URL } /4.0/diff /3.1?sdk=py` )
251
251
252
252
// Check the results again, even though they should be the same
253
253
const diff40to31Page1Methods = await Promise . all (
0 commit comments