forked from matrix/element-web
Rename login directory to auth
This commit is contained in:
parent
0802aaae91
commit
bc7ea44a59
|
@ -254,7 +254,7 @@ describe('loading:', function() {
|
|||
return awaitLoginComponent(matrixChat).then(() => {
|
||||
// we expect a single <Login> component
|
||||
ReactTestUtils.findRenderedComponentWithType(
|
||||
matrixChat, sdk.getComponent('structures.login.Login'));
|
||||
matrixChat, sdk.getComponent('structures.auth.Login'));
|
||||
|
||||
// the only outstanding request should be a GET /login
|
||||
// (in particular there should be no /register request for
|
||||
|
@ -390,7 +390,7 @@ describe('loading:', function() {
|
|||
it('shows a login view', function() {
|
||||
// we expect a single <Login> component
|
||||
ReactTestUtils.findRenderedComponentWithType(
|
||||
matrixChat, sdk.getComponent('structures.login.Login'),
|
||||
matrixChat, sdk.getComponent('structures.auth.Login'),
|
||||
);
|
||||
|
||||
// the only outstanding request should be a GET /login
|
||||
|
@ -554,7 +554,7 @@ describe('loading:', function() {
|
|||
|
||||
// we expect a single <Login> component
|
||||
ReactTestUtils.findRenderedComponentWithType(
|
||||
matrixChat, sdk.getComponent('structures.login.Login'),
|
||||
matrixChat, sdk.getComponent('structures.auth.Login'),
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -562,7 +562,7 @@ describe('loading:', function() {
|
|||
// ILAG renders this obsolete. I think.
|
||||
it('should allow us to return to the app', function() {
|
||||
const login = ReactTestUtils.findRenderedComponentWithType(
|
||||
matrixChat, sdk.getComponent('structures.login.Login')
|
||||
matrixChat, sdk.getComponent('structures.auth.Login')
|
||||
);
|
||||
|
||||
const linkText = 'Return to app';
|
||||
|
@ -630,7 +630,7 @@ describe('loading:', function() {
|
|||
function completeLogin(matrixChat) {
|
||||
// we expect a single <Login> component
|
||||
const login = ReactTestUtils.findRenderedComponentWithType(
|
||||
matrixChat, sdk.getComponent('structures.login.Login'));
|
||||
matrixChat, sdk.getComponent('structures.auth.Login'));
|
||||
|
||||
httpBackend.when('POST', '/login').check(function(req) {
|
||||
expect(req.data.type).toEqual('m.login.password');
|
||||
|
@ -743,6 +743,6 @@ function awaitRoomView(matrixChat, retryLimit, retryCount) {
|
|||
|
||||
function awaitLoginComponent(matrixChat, attempts) {
|
||||
return MatrixReactTestUtils.waitForRenderedComponentWithType(
|
||||
matrixChat, sdk.getComponent('structures.login.Login'), attempts,
|
||||
matrixChat, sdk.getComponent('structures.auth.Login'), attempts,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue