Browse Source

Rename login directory to auth

pull/8208/head
J. Ryan Stinnett 4 years ago
parent
commit
e98346e7cd
  1. 0
      src/components/views/auth/VectorCustomServerDialog.js
  2. 0
      src/components/views/auth/VectorLoginFooter.js
  3. 0
      src/components/views/auth/VectorLoginHeader.js
  4. 12
      test/app-tests/loading.js

0
src/components/views/login/VectorCustomServerDialog.js → src/components/views/auth/VectorCustomServerDialog.js

0
src/components/views/login/VectorLoginFooter.js → src/components/views/auth/VectorLoginFooter.js

0
src/components/views/login/VectorLoginHeader.js → src/components/views/auth/VectorLoginHeader.js

12
test/app-tests/loading.js

@ -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…
Cancel
Save