blob: f01f801d561f0fecb09ff5bcce5645a36688cdb2 [file] [log] [blame]
--- RCPTT testcase ---
Format-Version: 1.0
Contexts: _ihvnUC3mEeSwhO5Nwx0hPg,_D4Pj4C3lEeSwhO5Nwx0hPg,_2bS8sTNtEeSiS7b7ptZeHw,_DD4ysDmlEeiV5MMKft7xVA
Element-Name: TemplateEditor_OpenFromHistory
Element-Type: testcase
Element-Version: 3.0
External-Reference:
Id: _-p_yMKoHEeminf0o9fO9mA
Runtime-Version: 2.4.2.201905052359
Save-Time: 10/5/19 9:56 PM
Testcase-Type: ecl
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa
Content-Type: text/plain
Entry-Name: .description
Bug 541191
Tests that the template editor allows opening a revision from the local history.
------=_.description-216f885c-d591-38ce-8ea2-e4f8cb4d6ffa--
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
Content-Type: text/ecl
Entry-Name: .content
with [get-editor "new_file.template"] {
get-tree | select "View Template" | get-menu -path Style | click
get-button "Create and link new Style Property" | click
}
with [get-window "Select Sub Class and Template"] {
get-tree | select "mandatory/MandatoryStyleProperty"
get-button Finish | click
}
with [get-window MandatoryStyleProperty] {
get-editbox -after [get-label "Mandatory Marker"] | set-text x
get-button OK | click
}
get-button "Save (M1+S)" | click
get-view "Project Explorer" | click
get-editor "new_file.template" | close
// Create 2nd revision with text editor as this currently doesn't work properly with template editor
get-view "Project Explorer" | get-tree | select "com.eclipsesource.makeithappen.model/new_file.template"
| select "com.eclipsesource.makeithappen.model/new_file.template" | get-menu -path "Open With/Text Editor" | click
with [get-editor "new_file.template" | get-text-viewer] {
set-caret-pos 4 124
select-range 4 125 4 124
type-text y
key-type "M1+s"
}
get-view "Project Explorer" | click
get-editor "new_file.template" | close
get-view "Project Explorer" | get-tree | select "com.eclipsesource.makeithappen.model/new_file.template" | get-menu
-path "Team/Show Local History" | click
get-view History | get-tree | select [get-item -path ".*" -index 1] | get-menu
-path "Open With/Template Model Editor" | click
with [get-editor "new_file.template"] {
get-tree | select "View Template/Style/Mandatory Style true"
with [get-editbox -after [get-label "Mandatory Marker"]] {
get-property enablement | equals false | verify-true
get-property text | equals x | verify-true
}
}
------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--