Browse Source

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

songjianet 3 years ago
parent
commit
b0dbc33730

+ 5 - 4
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 - 0
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={