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 ### login
id: | check | id | class |
- [ ] inputUsername |--------------------| --- |----------------|
- [ ] inputPassword | :white_check_mark: | inputUsername | input-user-name |
- [ ] btnLogin | :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' path='userName'
> >
<NInput <NInput
class='input-user-name'
type='text' type='text'
size='large' size='large'
v-model={[this.loginForm.userName, 'value']} v-model={[this.loginForm.userName, 'value']}
@ -81,6 +82,7 @@ const login = defineComponent({
path='userPassword' path='userPassword'
> >
<NInput <NInput
class='input-password'
type='password' type='password'
size='large' size='large'
v-model={[this.loginForm.userPassword, 'value']} v-model={[this.loginForm.userPassword, 'value']}
@ -90,6 +92,7 @@ const login = defineComponent({
</NFormItem> </NFormItem>
</NForm> </NForm>
<NButton <NButton
class='btn-login'
round round
type='info' type='info'
disabled={ disabled={

Loading…
Cancel
Save