Browse Source

[Feature][UI Next] Add e2e to login page. (#8357)

3.0.0/version-upgrade
songjianet 3 years ago committed by GitHub
parent
commit
b0dbc33730
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      dolphinscheduler-ui-next/docs/e2e/login.md
  2. 3
      dolphinscheduler-ui-next/src/views/login/index.tsx

9
dolphinscheduler-ui-next/docs/e2e/login.md

@ -1,6 +1,7 @@
### login
id:
- [ ] inputUsername
- [ ] inputPassword
- [ ] btnLogin
| check | id | class |
|--------------------| --- |----------------|
| :white_check_mark: | inputUsername | input-user-name |
| :white_check_mark: | inputPassword | input-password |
| :white_check_mark: | btnLogin | btn-login |

3
dolphinscheduler-ui-next/src/views/login/index.tsx

@ -67,6 +67,7 @@ const login = defineComponent({
path='userName'
>
<NInput
class='input-user-name'
type='text'
size='large'
v-model={[this.loginForm.userName, 'value']}
@ -81,6 +82,7 @@ const login = defineComponent({
path='userPassword'
>
<NInput
class='input-password'
type='password'
size='large'
v-model={[this.loginForm.userPassword, 'value']}
@ -90,6 +92,7 @@ const login = defineComponent({
</NFormItem>
</NForm>
<NButton
class='btn-login'
round
type='info'
disabled={

Loading…
Cancel
Save