Projekt

Obecné

Profil

« Předchozí | Další » 

Revize c448aeb1

Přidáno uživatelem Pavel Fidranský před více než 6 roky(ů)

fix Robot Framework tests

Zobrazit rozdíly:

sources/src/main/webapp/tests/common.robot
59 59
Element Should Not Have Class
60 60
	[Arguments]		${element}		${className}
61 61
	Page Should Not Contain Element	${element}[contains(@class, "${className}")]
62

  
63

  
64
Element Should Have Attribute
65
	[Arguments]		${element}		${attributeName}
66
	Page Should Contain Element		${element}[@${attributeName}]
67

  
68

  
69
Element Should Not Have Attribute
70
	[Arguments]		${element}		${attributeName}
71
	Page Should Not Contain Element	${element}[@${attributeName}]
sources/src/main/webapp/tests/edge.robot
32 32
	Click Element		${edge38}${edgeArrow}
33 33
	Mouse Out			${edgePopover}
34 34
	Element Should Not Be Visible	${edgePopover}
35
	Element Should Have Class		${edgePopover}	hidden
35
	Element Should Have Attribute	${edgePopover}	hidden
36 36

  
37 37

  
38 38
Hide Edge Popover By Clicking Elsewhere
39 39
	Click Element		${edge38}${edgeArrow}
40 40
	Click Element		//body
41 41
	Element Should Not Be Visible	${edgePopover}
42
	Element Should Have Class		${edgePopover}	hidden
42
	Element Should Have Attribute	${edgePopover}	hidden
sources/src/main/webapp/tests/group.robot
17 17

  
18 18
${group1}			//*[name()="svg"][contains(@class, "group")][@data-id="1"]
19 19

  
20
${groupName}			/*[name()="text"][@class="group-name"]
21
${groupDissolveButton}	/*[name()="g"][contains(@class, "dissolve-button")]
20
${groupName}			//span[@class="group-name"]
22 21

  
23 22
${vertexContextMenu}	//div[contains(@class, "context-menu")]
24 23

  
......
55 54
Rename Group
56 55
	Element Should Contain			${group1}${groupName}	File
57 56
	# trigger group rename prompt
58
	Click Element					${group1}/*[name()="text"]
57
	Click Element					${group1}${groupName}
59 58
	Input Text Into Alert			Lorem Ipsum
60 59
	# check that group name was changed
61 60
	Element Should Contain			${group1}${groupName}	Lorem Ipsum
62 61

  
63 62

  
64
Dissolve Group
65
	Click Element					${group1}${groupDissolveButton}
66
	# check that group is not visible while its vertex is
67
	Element Should Not Be Visible	${group1}
68
	Element Should Be Visible		${vertex2019}
69

  
70

  
71 63
Add Vertex To Group
72 64
	# open vertex context menu
73 65
	Open Context Menu				${vertex2014}
sources/src/main/webapp/tests/navbar.robot
9 9

  
10 10

  
11 11
*** Variables ***
12
${navbar}				//div[@id="navigation"]
12
${navbar}				//div[@class="navbar"]
13 13
${graphWrapper}			//*[name()="g"][@id="graph"]
14 14

  
15 15
${mostEdgeButton}		//button[@id="mostEdge"]
16 16
${vertexToGroupButton}	//button[@id="vertexToGroup"]
17
${backToUploadButton}	//a[@id="view_back_to_upload"]
17
${backToUploadButton}	//a[@id="backToUpload"]
18 18

  
19 19
${excludedNodeList}		//div[@id="excludedNodeListComponent"]
20 20

  
sources/src/main/webapp/tests/node-excluding.robot
3 3

  
4 4
Suite Setup		Open Browser To Demo Diagram
5 5
Suite Teardown	Close Browser
6
Test Setup		Select Radio Button		actionMove	exclude
6
Test Setup		Select Radio Button		mode	exclude
7 7
Test Teardown	Reload Diagram Screen
8 8

  
9 9
Resource		common.robot
sources/src/main/webapp/tests/search.robot
10 10

  
11 11
*** Variables ***
12 12
${searchInputField}	//input[@id="searchText"]
13
${searchButton}		//button[@id="search"]
14
${searchCounter}	//span[@id="countOfFound"]
13
${searchButton}		//button[@id="searchButton"]
14
${searchCounter}	//span[@id="searchCount"]
15 15

  
16 16
${vertex2015}		//*[name()="svg"][@data-id="2015"]
17 17
${vertex2039}		//*[name()="svg"][@data-id="2039"]
sources/src/main/webapp/tests/sidebar.robot
10 10
*** Variables ***
11 11
${sidebar}				//div[@id="sidebar"]
12 12

  
13
${unconnectedButton}	//button[@id="unconnectedButton"]
14 13
${unconnectedNodeList}	//div[@id="unconnectedNodeListComponent"]
15 14

  
16 15
${includeAllButton}		//button[contains(@class, "include-all-button")]
17 16
${excludeAllButton}		//button[contains(@class, "exclude-all-button")]
18 17

  
19
${vertex0}				//*[name()="svg"][contains(@class, "vertex")][@data-id="0"]
20
${excludedVertex0}		//li[contains(@class, "vertex")][@data-id="0"]
18
${vertex2030}			//*[name()="svg"][contains(@class, "vertex")][@data-id="2030"]
19
${excludedVertex2030}	//li[contains(@class, "vertex")][@data-id="2030"]
21 20

  
22 21

  
23 22
*** Test Cases ***
24 23
Toggle Unconnected Nodes
25
	Element Should Have Class		${unconnectedNodeList}	hidden
26
	Click Element					${unconnectedButton}
27
	Element Should Not Have Class	${unconnectedNodeList}	hidden
28
	Click Element					${unconnectedButton}
29
	Element Should Have Class		${unconnectedNodeList}	hidden
24
	Element Should Not Have Attribute	${unconnectedNodeList}/div[@class="node-container-content"]		hidden
25
	Click Element						${unconnectedNodeList}/h2[@class="node-container-title"]
26
	Element Should Have Attribute		${unconnectedNodeList}/div[@class="node-container-content"]		hidden
27
	Click Element						${unconnectedNodeList}/h2[@class="node-container-title"]
28
	Element Should Not Have Attribute	${unconnectedNodeList}/div[@class="node-container-content"]		hidden
30 29

  
31 30

  
32 31
Include And Exclude All Unconnected Vertices
33
	Click Element					${unconnectedButton}
34
	Element Should Not Be Visible	${vertex0}
35
	Element Should Be Visible		${unconnectedNodeList}${excludedVertex0}
32
	Element Should Not Be Visible	${vertex2030}
33
	Element Should Be Visible		${unconnectedNodeList}${excludedVertex2030}
36 34
	# include all unconnected vertices
37 35
	Click Element					${unconnectedNodeList}${includeAllButton}
38
	Element Should Be Visible		${vertex0}
39
	Element Should Not Be Visible	${unconnectedNodeList}${excludedVertex0}
36
	Element Should Be Visible		${vertex2030}
37
	Element Should Not Be Visible	${unconnectedNodeList}${excludedVertex2030}
40 38
	# exclude all unconnected vertices
41 39
	Click Element					${unconnectedNodeList}${excludeAllButton}
42
	Element Should Not Be Visible	${vertex0}
43
	Element Should Be Visible		${unconnectedNodeList}${excludedVertex0}
44
	Click Element					${unconnectedButton}
40
	Element Should Not Be Visible	${vertex2030}
41
	Element Should Be Visible		${unconnectedNodeList}${excludedVertex2030}
sources/src/main/webapp/tests/vertex.robot
14 14
${vertex58}				//*[name()="svg"][contains(@class, "vertex")][@data-id="58"]
15 15
${vertex2014}			//*[name()="svg"][contains(@class, "vertex")][@data-id="2014"]
16 16

  
17
${vertexArchetypeIcon}	/*[name()="g"][@class="archetype-icon"]
17
${vertexArchetypeIcon}	/*[name()="use"][@class="archetype-icon"]
18 18

  
19 19
${vertexPopover}		//div[contains(@class, "vertex-popover")]
20 20

  
......
23 23
Highlight Vertex
24 24
	Click Element					${vertex58}
25 25
	# check that other vertices are either highlighted or dimmed
26
	Element Should Have Class		${vertex9}		node--highlighted-required
26
	Element Should Have Class		${vertex9}		node--highlighted-as-required
27 27
	Element Should Have Class		${vertex58}		node--highlighted
28 28
	Element Should Have Class		${vertex2014}	node--dimmed
29 29
	# unhighlight
30 30
	Click Element					${vertex58}
31 31
	# check that other vertices are back to normal
32
	Element Should Not Have Class	${vertex9}		node--highlighted-required
32
	Element Should Not Have Class	${vertex9}		node--highlighted-as-required
33 33
	Element Should Not Have Class	${vertex58}		node--highlighted
34 34
	Element Should Not Have Class	${vertex2014}	node--dimmed
35 35

  
......
64 64

  
65 65
Display Vertex Popover
66 66
	Click Element		${vertex2014}${vertexArchetypeIcon}
67
	Element Should Be Visible		${vertexPopover}
68
	Element Should Not Have Class	${vertexPopover}	hidden
67
	Element Should Be Visible			${vertexPopover}
68
	Element Should Not Have Attribute	${vertexPopover}	hidden
69 69
	Mouse Out			${vertexPopover}
70 70

  
71 71

  
......
73 73
	Click Element		${vertex2014}${vertexArchetypeIcon}
74 74
	Mouse Out			${vertexPopover}
75 75
	Element Should Not Be Visible	${vertexPopover}
76
	Element Should Have Class		${vertexPopover}	hidden
76
	Element Should Have Attribute	${vertexPopover}	hidden
77 77

  
78 78

  
79 79
Hide Vertex Popover By Clicking Elsewhere
80 80
	Click Element		${vertex2014}${vertexArchetypeIcon}
81 81
	Click Element		//body
82 82
	Element Should Not Be Visible	${vertexPopover}
83
	Element Should Have Class		${vertexPopover}	hidden
83
	Element Should Have Attribute	${vertexPopover}	hidden

Také k dispozici: Unified diff