1 |
1e2b2c27
|
Tomáš Šimandl
|
*** Settings ***
|
2 |
|
|
Documentation A test suite with tests of change actions.
|
3 |
|
|
...
|
4 |
|
|
... This test has a workflow that is created using keywords in
|
5 |
|
|
... the imported resource file.
|
6 |
|
|
...
|
7 |
|
|
Suite Setup Open Browser To Demo Diagram
|
8 |
|
|
Test Setup Select Radio Button actionMove exclude
|
9 |
|
|
Test Teardown Reload Diagram Screen
|
10 |
|
|
Suite Teardown Close Browser
|
11 |
|
|
Resource common.robot
|
12 |
|
|
|
13 |
|
|
*** Variables ***
|
14 |
|
|
${postponedButton} //button[@id='postponedButton']
|
15 |
|
|
|
16 |
|
|
${activeChange} //div[@id='activeChange']
|
17 |
|
|
${postponedChangeList} //div[@id='postponedChangeListComponent']
|
18 |
|
|
${excludedNodeList} //div[@id='excludedNodeListComponent']
|
19 |
|
|
|
20 |
|
|
${vertex1} //*[name()='svg'][contains(@class, 'vertex')][@data-id='1']
|
21 |
|
|
${excludedVertex1} //li[contains(@class, 'vertex')][@data-id='1']
|
22 |
|
|
|
23 |
|
|
${changePostponeButton} //button[contains(@class, 'postpone-button')]
|
24 |
|
|
${changeActivateButton} //button[contains(@class, 'activate-button')]
|
25 |
|
|
|
26 |
|
|
${vertexIncludeButton} //button[contains(@class, 'include-button')]
|
27 |
|
|
${vertexChangeButton} //button[contains(@class, 'change-button')]
|
28 |
|
|
|
29 |
|
|
*** Test Cases ***
|
30 |
|
|
Add Vertex To Change
|
31 |
|
|
Click Element ${vertex1}
|
32 |
|
|
Click Element ${excludedNodeList}${excludedVertex1}${vertexChangeButton}
|
33 |
|
|
Element Should Not Be Visible ${excludedNodeList}${excludedVertex1}
|
34 |
|
|
Element Should Be Visible ${activeChange}${excludedVertex1}
|
35 |
|
|
|
36 |
|
|
Postpone And Activate Change
|
37 |
|
|
Click Element ${postponedButton}
|
38 |
|
|
Click Element ${vertex1}
|
39 |
|
|
Click Element ${excludedNodeList}${excludedVertex1}${vertexChangeButton}
|
40 |
|
|
# postpone change
|
41 |
|
|
Click Element ${activeChange}${changePostponeButton}
|
42 |
|
|
# check that change is in list of postponed
|
43 |
|
|
Element Should Not Be Visible ${activeChange}${excludedVertex1}
|
44 |
|
|
Element Should Be Visible ${postponedChangeList}${excludedVertex1}
|
45 |
|
|
# activate change
|
46 |
|
|
Click Element ${postponedChangeList}${changeActivateButton}
|
47 |
|
|
# check that change is back active
|
48 |
|
|
Element Should Not Be Visible ${postponedChangeList}${excludedVertex1}
|
49 |
|
|
Element Should Be Visible ${activeChange}${excludedVertex1}
|
50 |
|
|
|
51 |
|
|
*** Keywords ***
|