| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Element-Name: FilterCommentedFiles |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _uUY2IGQmEea30cmg4vy5LA |
| Runtime-Version: 2.1.0.201605312320 |
| Save-Time: 8/18/16 5:25 PM |
| Testcase-Type: ecl |
| |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa |
| Content-Type: text/plain |
| Entry-Name: .description |
| |
| Exercise the filter commented files |
| ------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa-- |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| Content-Type: text/ecl |
| Entry-Name: .content |
| |
| let [val review [create-review -server $serverURL]] { |
| openCompareEditor $review |
| } |
| |
| //Sanity check to verify that we have two files |
| with [get-editor "Compare.*"] { |
| assert-that-number-of-files-in-compare -is 2 |
| } |
| |
| // Add a comment in right part of the compare editor and save it |
| with [get-editor "Compare.*"] { |
| insertComment -on right -text "This is my comment" -atLine 1 -save |
| } |
| |
| //Turn on the option to hide non commented files. |
| get-editor "Compare.*" | get-button "Show/hide the files.*" | click |
| |
| with [get-editor "Compare.*"] { |
| assert-that-number-of-files-in-compare -is 1 |
| } |
| |
| |
| //Now run the same test a second time on a new compare editor |
| get-editor "Compare.*" | close |
| get-editor | close |
| |
| let [val review [create-review -server $serverURL]] { |
| openCompareEditor $review |
| } |
| |
| // Add a comment in right part of the compare editor and save it |
| with [get-editor "Compare.*"] { |
| insertComment -on right -text "This is my comment" -atLine 1 -save |
| } |
| |
| //Turn on the option to hide non commented files. |
| get-editor "Compare.*" | get-button "Show/hide the files.*" | click |
| |
| with [get-editor "Compare.*"] { |
| assert-that-number-of-files-in-compare -is 1 |
| } |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |