| --- RCPTT testcase --- |
| Format-Version: 1.0 |
| Element-Name: SubmitRevertReview |
| Element-Type: testcase |
| Element-Version: 3.0 |
| External-Reference: |
| Id: _qu9iQF5tEeaLErCO3SKPNg |
| Runtime-Version: 2.1.0.201605312320 |
| Save-Time: 3/17/17 2:07 PM |
| Testcase-Type: ecl |
| |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac |
| Content-Type: text/ecl |
| Entry-Name: .content |
| |
| let [val review [create-review -server $serverURL]] { |
| runQueryAndOpenEditor $review |
| } |
| |
| // first do a +2 |
| get-editor | get-button "Reply..." | click |
| get-menu "Code-Review +2" | click |
| wait -ms $defaultWaitTime |
| |
| assert-that-first-entry-in-history-table -atColumn 3 -is "Code-Review+2" -in [get-editor] |
| |
| // do a submit |
| with [get-editor] { |
| get-button Submit | click |
| wait -ms $defaultWaitTime |
| } |
| |
| assert-that-first-entry-in-history-table -atColumn 3 -is "merged" -in [get-editor] |
| |
| |
| // do a revert |
| with [get-editor] { |
| assert-that-button Revert -is enabled |
| get-button Revert | click |
| get-window "Revert merged change" | get-button OK | click |
| wait -ms $defaultWaitTime |
| } |
| |
| //try { |
| // with [get-editor -index 0] { |
| // close |
| // } |
| //} -catch { |
| // wait -ms 1000 |
| //} -times 20 -finally { |
| //} |
| // |
| // |
| // |
| //with [get-editor ] { |
| //// Now test in the newly opened editor that the submit button is enabled |
| // assert-that-button Submit -is disabled |
| // // and submit the reverted review |
| // with [get-button "Reply..."] { |
| // click |
| // get-menu "Code-Review+2" | click |
| // } |
| // get-button Submit | click |
| //} |
| |
| |
| ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac-- |