@@ -323,29 +323,45 @@ export default (context, render) => {
323
323
} )
324
324
325
325
describe ( 'with different types of urls' , ( ) => {
326
- it ( 'on normal page' , async ( ) => {
326
+ it ( 'should work with normal page' , async ( ) => {
327
327
const browser = await webdriver ( context . appPort , '/with-cdm' )
328
328
const text = await browser . elementByCss ( 'p' ) . text ( )
329
329
330
330
expect ( text ) . toBe ( 'ComponentDidMount executed on client.' )
331
331
browser . close ( )
332
332
} )
333
333
334
- it ( 'on dir/index page ' , async ( ) => {
334
+ it ( 'should work with dir/index page ' , async ( ) => {
335
335
const browser = await webdriver ( context . appPort , '/nested-cdm/index' )
336
336
const text = await browser . elementByCss ( 'p' ) . text ( )
337
337
338
338
expect ( text ) . toBe ( 'ComponentDidMount executed on client.' )
339
339
browser . close ( )
340
340
} )
341
341
342
- it ( 'on dir/ page ' , async ( ) => {
342
+ it ( 'should work with dir/ page ' , async ( ) => {
343
343
const browser = await webdriver ( context . appPort , '/nested-cdm/' )
344
344
const text = await browser . elementByCss ( 'p' ) . text ( )
345
345
346
346
expect ( text ) . toBe ( 'ComponentDidMount executed on client.' )
347
347
browser . close ( )
348
348
} )
349
+
350
+ it ( 'should work with /index page' , async ( ) => {
351
+ const browser = await webdriver ( context . appPort , '/index' )
352
+ const text = await browser . elementByCss ( 'p' ) . text ( )
353
+
354
+ expect ( text ) . toBe ( 'ComponentDidMount executed on client.' )
355
+ browser . close ( )
356
+ } )
357
+
358
+ it ( 'should work with / page' , async ( ) => {
359
+ const browser = await webdriver ( context . appPort , '/' )
360
+ const text = await browser . elementByCss ( 'p' ) . text ( )
361
+
362
+ expect ( text ) . toBe ( 'ComponentDidMount executed on client.' )
363
+ browser . close ( )
364
+ } )
349
365
} )
350
366
351
367
describe ( 'with asPath' , ( ) => {
0 commit comments