# Patrol Inspection Web RD Test scenario 2021/06~2021/12 --- ###### tags: `Patrol Inspection Web` ## 2021/12/29 ### Tingwei #### [Update] Account name supports alphanumeric and `@.-_` chars. And the other features. **Purpose** 1. [Update] Account name supports alphanumeric and `@.-_ chars 2. [Update] Fine-tune long length Account and email UI to no wrap and their box scrolls horizontially 3. [Fix][Station and Equipment stats] Dropdowns disappear without `&?filter=xxx`. Show "No Data yet" when some dropdowns changes. 4. [Fix][Statistics by area]Show "No Data yet" when some dropdowns changes. 5. [Fix][Statistics by personnel] Dropdowns disappear without `&?filter=xxx`. Show "No Data yet" when some dropdowns changes. 6. [Change][Dockerfile] npm ci --no-optional **Test** on 841 1. adding the account name - [x] `@.-_` - [x] length > 100 -> reject - [x] length = 100 -> ok - [x] length < 6 -> reject - [x] hint en - [x] hint tw - [x] hint cn 2. test long length Account and email UI by a 100 length account name - [x] header account name -> show '...' when the window size is 1366 - [x] -> click -> dropdown UI(set max-width 60vw) -> check account name UI, show '...' when the window size is 1366 - [x] -> click Profile -> account name is breal-all in both the page title and the card detail - [x] Account Management -> table -> account name and email is nowrap & the box scrolls horizontally - [x] Account Group -> 天龍皇城一號 -> table -> account name is nowrap & the box scrolls horizontally - [x] -> click account name -> dialog -> account name and email is nowrap & the box scrolls horizontally - [x] Job Management -> issue detail -> account name in () of the issue detail -> account name is break-all - [x] -> Create Task -> select the long length account name -> check task List UI, account name is nowrap & the box scrolls horizontally - [x] -> Click the task -> Task information tab -> account name in () is nowrap & the box scrolls horizontally - [x] -> Change records tab -> account name in () is nowrap & the box scrolls horizontally - [x] Task Management -> table -> account name is nowrap & the box scrolls horizontally - [x] -> Click task name -> Task information tab -> account name in () is nowrap & the box scrolls horizontally - [x] -> Change records tab -> account name in () is nowrap & the box scrolls horizontally - [x] Statistics by personnel -> select long account name -> search -> print -> account name is breal-all 3. test 3 ~ 5 - [x] /EquipAnalytics -> check the dropdowns & show "No Data yet" - [x] -> select & search -> show the result - [x] -> change dropdown -> show "No Data yet" - [x] /RegionAnalytics -> check the dropdowns & show "No Data yet" - [x] -> select & search -> show the result - [x] -> change dropdown -> show "No Data yet" - [x] /UserAnalytics -> check the dropdowns & show "No Data yet" - [x] -> select & search -> show the result - [x] -> change dropdown -> show "No Data yet" 4. test 6, deploy on inspection841 - [x] visit https://inspectionapp-inspection841-eks002.hz.wise-paas.com.cn/ ## 2021/12/06 ### Alice #### feature/theme-bug-fix **Purpose** 1. [fix] change page theme undefined **Test** 1. test for dcg 81 Inspection - [x] add url ? theme=dark and load -> change page -> make sure other page normal ## 2021/11/18 ### Alice #### feature/dark-theme **Purpose** 1. [add] dark theme support **Test** 1. test for Inspection - [x] add url ? theme=dark -> change index dark theme ## 2021/09/24 ### Tingwei [Fix][Profile & Reset Password] Sync the password rules with EnSaaS. **Purpose** 1. [Fix][Profile & Reset Password] Sync the password rules with EnSaaS. 2. [Update][Profile] Password and Confirm Password use SwitchPassword Component to show the eye button for toggling visibility. 3. [Update][SwitchPassword] Add `<slot>` for invalid-feedback. 4. [Fix][Profile] If in the Reset Password tab, no need to show the pencil button. **Test** 1. Profile -> Reset Password -> - [x] hide the pencil button, show *=Required - [x] eye button - [x] rule information list en - [x] rule information list cn - [x] rule information list tw - [x] langth < 8 - [x] langth > 20 - [x] !QAZ2wsx -> valid - [x] lack digit, !QAz@wsx -> invalid - [x] lack uppercase char, !qaz2wsx -> invalid - [x] lack lowercase char, !QAZ2WSX -> invalid - [x] lack special char, 1qaz2WSX -> invalid - [x] has a space ( ), !QAZ 2wsx -> invalid - [x] has a backslash (\), !QAZ\2wsx -> invalid - [x] has a double quotes ("), !QAZ"2wsx -> invalid - [x] Passwords do not match each other 2. forget password -> login -> ResetPassword Page -> - [x] rule information list en - [x] rule information list cn - [x] rule information list tw - [x] langth < 8 - [x] langth > 20 - [x] !QAZ2wsx -> valid - [x] lack digit, !QAz@wsx -> invalid - [x] lack uppercase char, !qaz2wsx -> invalid - [x] lack lowercase char, !QAZ2WSX -> invalid - [x] lack special char, 1qaz2WSX -> invalid - [x] has a space ( ), !QAZ 2wsx -> invalid - [x] has a backslash (\), !QAZ\2wsx -> invalid - [x] has a double quotes ("), !QAZ"2wsx -> invalid - [x] Passwords do not match each other ## 2021/07/26 ### Tingwei [Fix][Patrol Area Setting][Stations and Equipment] 1. Latitude & longitude validation 2. latitude & longitude translation. **Purpose** 1. Latitude & longitude validation 2. latitude & longitude translation **Test** 1. test in local - [x] tw - [x] cn - [x] 180 longitude -> valid - [x] -180 longitude -> valid - [x] -180.000000 longitude -> valid - [x] 180.000000 longitude -> valid - [x] 181.000000 longitude -> invalid - [x] -180.000001 longitude -> invalid - [x] 90 longitude -> valid - [x] -90 longitude -> valid - [x] 90.000000 lantitude -> valid - [x] 90.000000 longitude -> valid - [x] 91.000000 longitude -> invalid - [x] -90.000001 longitude -> invalid ## 2021/07/21 ### Tingwei [Add] Job Management **Purpose** 1. Job Management Page 2. Planning Page 3. Upload PDF **Test** 1. test Job Management Page - [x] translation - HTML `<title></title>` in the current tab of Chrome - [x] translation - Menu title of the left bar - [x] translation - Page title of the main content - [x] change tab - [x] table (planning status row) - [x] table (the other status rows) - [x] click Detail - [x] click Duplicate - [x] click +Job - [x] click +Job -> Select Station/Eqp. dialog -> change Area - [x] click +Job -> Select Station/Eqp. dialog -> change station/device - [x] click +Job -> Select Station/Eqp. dialog -> Cancel -> click +Job - [x] click +Job -> Select Station/Eqp. dialog -> Submit 2. test Planning Page - [x] HTML `<title></title>` in the current tab of Chrome - [x] edit Station/Eqp. - [x] edit description - [x] upload image - [x] upload PDF - [x] Create Task - [x] Edit Task - [x] Edit Task -> Cancel -> Create Task - [x] Delete Task - [x] Assign Job - [x] Delete Job - [x] Unassigned Issue Page - [x] Processing Issue Page -> completed - [x] Closed Issue Page 3. Complicated Test - [x] 新增加一個 job -> 填描述 -> 上傳附件 -> 新增 1 個 task -> 回到 list duplicate 該 Job -> 刪除原本的 Job -> 刪除複製出來的 Job - [x] duplicate -> change Area and station/eqp. -> change desc -> upload attach -> add a task -> delete a old tash -> open the origin planning job -> check the difference between them - [x] 新增一個 job -> 新增 1 個 task -> 刪除那個 task -> delete job - [x] Processing 時建立 task 或 branch task 都變成 planning ## 2021/06/4 ### Tingwei [Change] 1. change __batchAssignToInspector translation 2. Delete .DS_Store file and add it to .gitignore. **Purpose** 1. change __batchAssignToInspector translation 2. Delete .DS_Store file and add it to .gitignore. 3. [Fix] Task Name placeholder translation. **Test** 1. test purpose 1 & 3 by setting inspection-841 PostgreSQL connection in appsetting.js and running the local server - [x] en - [x] tw - [x] cn