@@ -397,8 +397,7 @@ describe('loading:', function() {
397
397
} ) ;
398
398
399
399
describe ( 'Guest auto-registration:' , function ( ) {
400
- // TODO: Repair this test in https://github.com/vector-im/riot-web/issues/8468
401
- /* it('shows a welcome page by default', function(done) {
400
+ it ( 'shows a welcome page by default' , function ( done ) {
402
401
loadApp ( ) ;
403
402
404
403
Promise . delay ( 1 ) . then ( ( ) => {
@@ -426,10 +425,9 @@ describe('loading:', function() {
426
425
matrixChat , sdk . getComponent ( 'auth.Welcome' ) ) ;
427
426
expect ( windowLocation . hash ) . toEqual ( "#/welcome" ) ;
428
427
} ) . done ( done , done ) ;
429
- }); */
428
+ } ) ;
430
429
431
- // TODO: Repair this test in https://github.com/vector-im/riot-web/issues/8468
432
- /* it('uses the default homeserver to register with', function(done) {
430
+ it ( 'uses the default homeserver to register with' , function ( done ) {
433
431
loadApp ( ) ;
434
432
435
433
Promise . delay ( 1 ) . then ( ( ) => {
@@ -453,15 +451,15 @@ describe('loading:', function() {
453
451
} ) . then ( ( req ) => {
454
452
expect ( req . path ) . toStartWith ( DEFAULT_HS_URL ) ;
455
453
456
- // once the sync completes, we should have a home page
454
+ // once the sync completes, we should have a welcome page
457
455
httpBackend . verifyNoOutstandingExpectation ( ) ;
458
456
ReactTestUtils . findRenderedComponentWithType (
459
- matrixChat, sdk.getComponent('structures.EmbeddedPage '));
460
- expect(windowLocation.hash).toEqual("#/home ");
457
+ matrixChat , sdk . getComponent ( 'auth.Welcome ' ) ) ;
458
+ expect ( windowLocation . hash ) . toEqual ( "#/welcome " ) ;
461
459
expect ( MatrixClientPeg . get ( ) . baseUrl ) . toEqual ( DEFAULT_HS_URL ) ;
462
460
expect ( MatrixClientPeg . get ( ) . idBaseUrl ) . toEqual ( DEFAULT_IS_URL ) ;
463
461
} ) . done ( done , done ) ;
464
- }); */
462
+ } ) ;
465
463
466
464
it ( 'shows a room view if we followed a room link' , function ( done ) {
467
465
loadApp ( {
@@ -530,15 +528,14 @@ describe('loading:', function() {
530
528
} ) ;
531
529
} ) ;
532
530
533
- // TODO: Repair this test in https://github.com/vector-im/riot-web/issues/8468
534
- /* it('should give us a login page', function() {
531
+ it ( 'should give us a login page' , function ( ) {
535
532
expect ( windowLocation . hash ) . toEqual ( "#/login" ) ;
536
533
537
534
// we expect a single <Login> component
538
535
ReactTestUtils . findRenderedComponentWithType (
539
536
matrixChat , sdk . getComponent ( 'structures.auth.Login' ) ,
540
537
) ;
541
- }); */
538
+ } ) ;
542
539
543
540
/*
544
541
// ILAG renders this obsolete. I think.
@@ -680,8 +677,6 @@ function awaitSyncingSpinner(matrixChat, retryLimit, retryCount) {
680
677
681
678
console . log ( Date . now ( ) + " Awaiting sync spinner: load complete." ) ;
682
679
683
- // state looks good, check the rendered output
684
- assertAtSyncingSpinner ( matrixChat ) ;
685
680
return Promise . resolve ( ) ;
686
681
}
687
682
0 commit comments