blob: 5ea7a6bf53346483b13aa7d7195d35e405c34737 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Element-Name: ReplyFromDashboardMustShowDrafts
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _dIR2YO1VEeaSvZFHvBle7Q
Runtime-Version: 2.1.0.201605312320
Save-Time: 2/7/17 12:02 PM
Testcase-Type: ecl
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
let [val review [create-review -server $serverURL]] {
openCompareEditor $review
// Type a comment, save and close the editor
with [get-editor "Compare.*"] {
insertComment -on left -text comment -atLine 1 -save
}
get-editor "Compare.*" | close
get-editor | close
// Reload the review in the dashboard to ensure new in memory object
runQuery [$review | get lastChangeId] -serverName $serverName
}
//Open the reply dialog and check that it contains the name of the file that contains a draft
with [get-view "Gerrit Dashboard (EGerrit)" | get-table] {
get-menu "Reply/Reply..." | click
}
get-window "Reply to comment" | get-link "<a>src/EGerritTestReviewFile.java</a>" | get-property caption
| equals "<a>src/EGerritTestReviewFile.java</a>" | verify-true
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--