@@ -222,8 +222,7 @@ describe('loading:', function() {
222222 } ) . done ( done , done ) ;
223223 } ) ;
224224
225- // TODO: Repair this test in https://github.com/vector-im/riot-web/issues/8468
226- /* it('should follow the original link after successful login', function(done) {
225+ it ( 'should follow the original link after successful login' , function ( done ) {
227226 loadApp ( {
228227 uriFragment : "#/room/!room:id" ,
229228 } ) ;
@@ -258,10 +257,9 @@ describe('loading:', function() {
258257 expect ( localStorage . getItem ( 'mx_hs_url' ) ) . toEqual ( DEFAULT_HS_URL ) ;
259258 expect ( localStorage . getItem ( 'mx_is_url' ) ) . toEqual ( DEFAULT_IS_URL ) ;
260259 } ) . done ( done , done ) ;
261- }); */
260+ } ) ;
262261
263- // TODO: Repair this test in https://github.com/vector-im/riot-web/issues/8468
264- /* it('should not register as a guest when using a #/login link', function() {
262+ it ( 'should not register as a guest when using a #/login link' , function ( ) {
265263 loadApp ( {
266264 uriFragment : "#/login" ,
267265 } ) ;
@@ -288,7 +286,7 @@ describe('loading:', function() {
288286 matrixChat , sdk . getComponent ( 'structures.EmbeddedPage' ) ) ;
289287 expect ( windowLocation . hash ) . toEqual ( "#/home" ) ;
290288 } ) ;
291- }); */
289+ } ) ;
292290 } ) ;
293291
294292 describe ( "MatrixClient rehydrated from stored credentials:" , function ( ) {
@@ -300,8 +298,7 @@ describe('loading:', function() {
300298 localStorage . setItem ( "mx_last_room_id" , "!last_room:id" ) ;
301299 } ) ;
302300
303- // TODO: Repair this test in https://github.com/vector-im/riot-web/issues/8468
304- /* it('shows the last known room by default', function() {
301+ it ( 'shows the last known room by default' , function ( ) {
305302 httpBackend . when ( 'GET' , '/pushrules' ) . respond ( 200 , { } ) ;
306303 httpBackend . when ( 'POST' , '/filter' ) . respond ( 200 , { filter_id : 'fid' } ) ;
307304
@@ -357,7 +354,7 @@ describe('loading:', function() {
357354 httpBackend . verifyNoOutstandingExpectation ( ) ;
358355 expect ( windowLocation . hash ) . toEqual ( "#/room/!room:id" ) ;
359356 } ) . done ( done , done ) ;
360- }); */
357+ } ) ;
361358
362359 describe ( '/#/login link:' , function ( ) {
363360 beforeEach ( function ( ) {
@@ -387,22 +384,20 @@ describe('loading:', function() {
387384 }
388385 } ) ;
389386
390- // TODO: Repair this test in https://github.com/vector-im/riot-web/issues/8468
391- /* it('shows the homepage after login', function() {
387+ it ( 'shows the homepage after login' , function ( ) {
392388 return completeLogin ( matrixChat ) . then ( ( ) => {
393389 // we should see a home page, even though we previously had
394390 // a stored mx_last_room_id
395391 ReactTestUtils . findRenderedComponentWithType (
396392 matrixChat , sdk . getComponent ( 'structures.EmbeddedPage' ) ) ;
397393 expect ( windowLocation . hash ) . toEqual ( "#/home" ) ;
398394 } ) ;
399- }); */
395+ } ) ;
400396 } ) ;
401397 } ) ;
402398
403399 describe ( 'Guest auto-registration:' , function ( ) {
404- // TODO: Repair this test in https://github.com/vector-im/riot-web/issues/8468
405- /* it('shows a welcome page by default', function(done) {
400+ it ( 'shows a welcome page by default' , function ( done ) {
406401 loadApp ( ) ;
407402
408403 Promise . delay ( 1 ) . then ( ( ) => {
@@ -430,10 +425,9 @@ describe('loading:', function() {
430425 matrixChat , sdk . getComponent ( 'auth.Welcome' ) ) ;
431426 expect ( windowLocation . hash ) . toEqual ( "#/welcome" ) ;
432427 } ) . done ( done , done ) ;
433- }); */
428+ } ) ;
434429
435- // TODO: Repair this test in https://github.com/vector-im/riot-web/issues/8468
436- /* it('uses the default homeserver to register with', function(done) {
430+ it ( 'uses the default homeserver to register with' , function ( done ) {
437431 loadApp ( ) ;
438432
439433 Promise . delay ( 1 ) . then ( ( ) => {
@@ -457,15 +451,15 @@ describe('loading:', function() {
457451 } ) . then ( ( req ) => {
458452 expect ( req . path ) . toStartWith ( DEFAULT_HS_URL ) ;
459453
460- // once the sync completes, we should have a home page
454+ // once the sync completes, we should have a welcome page
461455 httpBackend . verifyNoOutstandingExpectation ( ) ;
462456 ReactTestUtils . findRenderedComponentWithType (
463- matrixChat, sdk.getComponent('structures.EmbeddedPage '));
464- expect(windowLocation.hash).toEqual("#/home ");
457+ matrixChat , sdk . getComponent ( 'auth.Welcome ' ) ) ;
458+ expect ( windowLocation . hash ) . toEqual ( "#/welcome " ) ;
465459 expect ( MatrixClientPeg . get ( ) . baseUrl ) . toEqual ( DEFAULT_HS_URL ) ;
466460 expect ( MatrixClientPeg . get ( ) . idBaseUrl ) . toEqual ( DEFAULT_IS_URL ) ;
467461 } ) . done ( done , done ) ;
468- }); */
462+ } ) ;
469463
470464 it ( 'shows a room view if we followed a room link' , function ( done ) {
471465 loadApp ( {
@@ -534,15 +528,14 @@ describe('loading:', function() {
534528 } ) ;
535529 } ) ;
536530
537- // TODO: Repair this test in https://github.com/vector-im/riot-web/issues/8468
538- /* it('should give us a login page', function() {
531+ it ( 'should give us a login page' , function ( ) {
539532 expect ( windowLocation . hash ) . toEqual ( "#/login" ) ;
540533
541534 // we expect a single <Login> component
542535 ReactTestUtils . findRenderedComponentWithType (
543536 matrixChat , sdk . getComponent ( 'structures.auth.Login' ) ,
544537 ) ;
545- }); */
538+ } ) ;
546539
547540 /*
548541 // ILAG renders this obsolete. I think.
@@ -684,8 +677,6 @@ function awaitSyncingSpinner(matrixChat, retryLimit, retryCount) {
684677
685678 console . log ( Date . now ( ) + " Awaiting sync spinner: load complete." ) ;
686679
687- // state looks good, check the rendered output
688- assertAtSyncingSpinner ( matrixChat ) ;
689680 return Promise . resolve ( ) ;
690681}
691682
0 commit comments