| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Element-Name: ClearReviewedFlag |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _UvEugMINEea6ENdZSE9Ghg |
| Runtime-Version: 2.1.0.201605312320 |
| Save-Time: 3/28/17 7:29 AM |
| Testcase-Type: ecl |
| |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa |
| Content-Type: text/plain |
| Entry-Name: .description |
| |
| Test the removal of all reviewed flag (the check marks) from files in a review. |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| Content-Type: text/ecl |
| Entry-Name: .content |
| |
| let [val review -value [create-review -server $serverURL]] { |
| runQueryAndOpenEditor [ $review ] |
| } |
| |
| //Test the History file table |
| with [get-editor | get-table -index 1] { |
| //Reset the files table to have all columns available |
| key-type "M1+6" |
| |
| //Initially the reviewed indicator is off |
| assert-that-reviewed-flag-is-off -row 0 |
| assert-that-reviewed-flag-is-off -row 1 |
| |
| //Set the reviewd indicator |
| get-cell 0 0 | mouse down -count 1 |
| get-cell 1 0 | mouse down -count 1 |
| assert-that-reviewed-flag-is-on -row 0 |
| assert-that-reviewed-flag-is-on -row 1 |
| |
| //Use the menu to remove all reviewed indicator |
| get-menu "Clear all reviewed flags" | click |
| |
| assert-that-reviewed-flag-is-off -row 0 |
| assert-that-reviewed-flag-is-off -row 1 |
| } |
| |
| //test the compare editor |
| with [get-editor | get-table -index 1] { |
| get-cell 1 2 | click |
| get-cell 1 2 | mouse down -count 2 |
| double-click |
| } |
| get-window "EGerrit Tip" | get-button OK | click |
| |
| with [get-editor "Compare.*" | get-tree] { |
| assert-that-reviewed-flag-is-on -row 1 |
| get-menu "Clear all reviewed flags" | click |
| //ASynch command, so lets put a timer here |
| wait -ms $defaultWaitTime |
| assert-that-reviewed-flag-is-off -row 0 |
| assert-that-reviewed-flag-is-off -row 1 |
| |
| } |
| |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |