Projekt

Obecné

Profil

Stáhnout (2.31 KB) Statistiky
| Větev: | Tag: | Revize:
1
*** Settings ***
2
Documentation	A test suite with tests of sidebar panels toggling.
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
Suite Teardown	Close Browser
9
Resource		common.robot
10

    
11
*** Variables ***
12
${sidebar}	//div[@id='sidebar']
13

    
14
${changeButton}	//button[@id='changeButton']
15
${postponedButton}	//button[@id='postponedButton']
16
${unconnectedButton}	//button[@id='unconnectedButton']
17
${missingButton}	//button[@id='missingButton']
18

    
19
${activeChange}	//div[@id='activeChange']
20
${postponedChangeList}	//div[@id='postponedChangeListComponent']
21
${unconnectedNodeList}	//div[@id='unconnectedNodeListComponent']
22
${missingClassList}	//div[@id='missingClassListComponent']
23

    
24
${includeAllButton}	//button[contains(@class, 'include-all-button')]
25
${excludeAllButton}	//button[contains(@class, 'exclude-all-button')]
26

    
27
${vertex4}	//*[name()='svg'][contains(@class, 'vertex')][@data-id='4']
28
${excludedVertex4}	//li[contains(@class, 'vertex')][@data-id='4']
29

    
30
*** Test Cases ***
31
Toggle Active Change
32
	Element Should Not Have Class	${activeChange}	hidden
33
	Click Element	${changeButton}
34
	Element Should Have Class	${activeChange}	hidden
35

    
36
Toggle Postponed Changes
37
	Element Should Have Class	${postponedChangeList}	hidden
38
	Click Element	${postponedButton}
39
	Element Should Not Have Class	${postponedChangeList}	hidden
40

    
41
Toggle Unconnected Nodes
42
	Element Should Have Class	${unconnectedNodeList}	hidden
43
	Click Element	${unconnectedButton}
44
	Element Should Not Have Class	${unconnectedNodeList}	hidden
45

    
46
Toggle Missing Classes
47
	Element Should Have Class	${missingClassList}	hidden
48
	Click Element	${missingButton}
49
	Element Should Not Have Class	${missingClassList}	hidden
50

    
51
Include And Exclude All Unconnected Vertices
52
	Click Element	${unconnectedButton}
53
	Element Should Not Be Visible	${vertex4}
54
	Element Should Be Visible	${unconnectedNodeList}${excludedVertex4}
55
	# include all unconnected vertices
56
	Click Element	${unconnectedNodeList}${includeAllButton}
57
	Element Should Be Visible	${vertex4}
58
	Element Should Not Be Visible	${unconnectedNodeList}${excludedVertex4}
59
	# exclude all unconnected vertices
60
	Click Element	${unconnectedNodeList}${excludeAllButton}
61
	Element Should Not Be Visible	${vertex4}
62
	Element Should Be Visible	${unconnectedNodeList}${excludedVertex4}
63

    
64
*** Keywords ***
(12-12/14)