blob: ade165be3963514efc205604cfff2499a2bf81e5 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Element-Name: FilesDialog
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _kE6NkLcsEeaIpME9A_z4Aw
Runtime-Version: 2.1.0.201605312320
Save-Time: 2/16/17 6:17 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
wait -ms $defaultWaitTime
get-editor | activate-review
}
wait -ms $defaultWaitTime
//Open the FilesDialog
get-eclipse-window | key-type "M1+5"
//Check the content of the dialog
with [get-window "Files from the active review"] {
assert-that-filename-in-dialog -atLine 0 -is "COMMIT_MSG.*"
assert-that-filename-in-dialog -atLine 1 -is "EGerritTestReviewFile.java - src"
}
//Check that we have a dialog if the file is missing
with [get-window "Files from the active review" | get-table] {
key-type Enter
}
get-window "File(s) not found" | get-button OK | click
//Uncheck the "Commit_Msg flag
get-eclipse-window | key-type "M1+5"
with [get-window "Files from the active review"] {
get-button "Show Commit_Msg" | uncheck
assert-that-filename-in-dialog -atLine 0 -is "EGerritTestReviewFile.java - src"
get-button Cancel | click
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--