@@ -254,7 +254,7 @@ describe('loading:', function() {
254254 return awaitLoginComponent ( matrixChat ) . then ( ( ) => {
255255 // we expect a single <Login> component
256256 ReactTestUtils . findRenderedComponentWithType (
257- matrixChat , sdk . getComponent ( 'structures.login .Login' ) ) ;
257+ matrixChat , sdk . getComponent ( 'structures.auth .Login' ) ) ;
258258
259259 // the only outstanding request should be a GET /login
260260 // (in particular there should be no /register request for
@@ -390,7 +390,7 @@ describe('loading:', function() {
390390 it ( 'shows a login view' , function ( ) {
391391 // we expect a single <Login> component
392392 ReactTestUtils . findRenderedComponentWithType (
393- matrixChat , sdk . getComponent ( 'structures.login .Login' ) ,
393+ matrixChat , sdk . getComponent ( 'structures.auth .Login' ) ,
394394 ) ;
395395
396396 // the only outstanding request should be a GET /login
@@ -554,15 +554,15 @@ describe('loading:', function() {
554554
555555 // we expect a single <Login> component
556556 ReactTestUtils . findRenderedComponentWithType (
557- matrixChat , sdk . getComponent ( 'structures.login .Login' ) ,
557+ matrixChat , sdk . getComponent ( 'structures.auth .Login' ) ,
558558 ) ;
559559 } ) ;
560560
561561 /*
562562 // ILAG renders this obsolete. I think.
563563 it('should allow us to return to the app', function() {
564564 const login = ReactTestUtils.findRenderedComponentWithType(
565- matrixChat, sdk.getComponent('structures.login .Login')
565+ matrixChat, sdk.getComponent('structures.auth .Login')
566566 );
567567
568568 const linkText = 'Return to app';
@@ -630,7 +630,7 @@ describe('loading:', function() {
630630 function completeLogin ( matrixChat ) {
631631 // we expect a single <Login> component
632632 const login = ReactTestUtils . findRenderedComponentWithType (
633- matrixChat , sdk . getComponent ( 'structures.login .Login' ) ) ;
633+ matrixChat , sdk . getComponent ( 'structures.auth .Login' ) ) ;
634634
635635 httpBackend . when ( 'POST' , '/login' ) . check ( function ( req ) {
636636 expect ( req . data . type ) . toEqual ( 'm.login.password' ) ;
@@ -743,6 +743,6 @@ function awaitRoomView(matrixChat, retryLimit, retryCount) {
743743
744744function awaitLoginComponent ( matrixChat , attempts ) {
745745 return MatrixReactTestUtils . waitForRenderedComponentWithType (
746- matrixChat , sdk . getComponent ( 'structures.login .Login' ) , attempts ,
746+ matrixChat , sdk . getComponent ( 'structures.auth .Login' ) , attempts ,
747747 ) ;
748748}
0 commit comments