graphdb-workbench-tests 3.4.0-dynamic-guides-test → 3.5.0-reactodia-poc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/e2e-legacy/cluster/cluster-states.spec.js +3 -3
- package/e2e-legacy/explore/visual-graph/node-info-panel.spec.js +58 -0
- package/e2e-legacy/explore/visual-graph/visual-graph-links-limit.spec.js +167 -0
- package/e2e-legacy/explore/visual-graph/visual.graph.spec.js +55 -78
- package/e2e-legacy/graphql/graphql-in-remote-location.spec.js +49 -0
- package/e2e-legacy/guides/navigation/navigation-guide.spec.js +64 -0
- package/e2e-legacy/guides/table-graph-explore/table-graph-explore-guide.spec.js +2 -1
- package/e2e-legacy/guides/ttyg/configure-agent/configure-agent-guide.spec.js +34 -26
- package/e2e-legacy/guides/ttyg/edit-agent/edit-ttyg-agent-guide.spec.js +1 -0
- package/e2e-legacy/guides/visual-graph/visual-graph-guide.spec.js +330 -124
- package/e2e-legacy/help/guides/guides-autostart.spec.js +36 -3
- package/e2e-legacy/help/guides/guides-confirm-cancel-dialog.js +83 -0
- package/e2e-legacy/home/cookie-policy/cookie-policy.spec.js +182 -0
- package/e2e-legacy/home/create-repository.spec.js +6 -0
- package/e2e-legacy/repository/attach-remote-location.spec.js +47 -12
- package/e2e-legacy/repository/url-with-repository-id-parameter.spec.js +1 -1
- package/e2e-legacy/resource/resource.spec.js +33 -13
- package/e2e-legacy/setup/aclmanagement/acl-management-with-selected repository.spec.js +44 -0
- package/e2e-legacy/sparql-editor/actions/execute-query.spec.js +2 -0
- package/e2e-legacy/sparql-editor/actions/expand-results-over-sameas.spec.js +8 -8
- package/e2e-legacy/sparql-editor/actions/include-inferred-statements.spec.js +4 -4
- package/e2e-legacy/sparql-editor/actions/inferred-sameas.spec.js +3 -3
- package/e2e-legacy/sparql-editor/yasr/toolbar/visual-graph-button.spec.js +90 -36
- package/e2e-legacy/sparql-editor/yasr/yasr.spec.js +80 -0
- package/e2e-legacy/ttyg/chat-panel.spec.js +9 -0
- package/e2e-legacy/ttyg/clone-agent.spec.js +22 -0
- package/e2e-legacy/ttyg/edit-agent.spec.js +17 -0
- package/e2e-security/setup/home/cookie-policy.spec.js +232 -6
- package/e2e-security/setup/users-and-access/turn-on-security-and-password-change.spec.js +72 -59
- package/fixtures/graph/graph-configurations.json +59 -0
- package/fixtures/guides/confirm-cancel-dialog/confirm-cancel-dialog-guide.json +15 -0
- package/fixtures/guides/navigation/navigation-guide.json +60 -0
- package/fixtures/guides/ttyg/configure-agent/configure-ttyg-agent-guide.json +6 -1
- package/fixtures/guides/visual-graph/visual-graph-config-guide.json +39 -0
- package/fixtures/ttyg/chats/explain-response-1.json +2 -48
- package/npm-shrinkwrap.json +32 -33
- package/package.json +1 -1
- package/steps/cookie-policy/cookie-consent-banner-steps.js +21 -0
- package/steps/cookie-policy/cookie-policy-modal.steps.js +56 -0
- package/steps/graphql/create-graphql-endpoint-steps.js +8 -0
- package/steps/graphql/graphql-endpoint-management-steps.js +8 -0
- package/steps/graphql/graphql-playground-steps.js +8 -0
- package/steps/guides/guide-dialog-steps.js +56 -2
- package/steps/guides/movies-guide-steps.js +2 -1
- package/steps/header-steps.js +13 -0
- package/steps/home-steps.js +4 -27
- package/steps/login-steps.js +1 -0
- package/steps/main-menu-steps.js +1 -0
- package/steps/repositories/attach-repository-steps.js +16 -0
- package/steps/repository-steps.js +24 -0
- package/steps/resource/resource-steps.js +0 -8
- package/steps/setup/acl-management-steps.js +12 -0
- package/steps/setup/settings-steps.js +1 -1
- package/steps/shared-modal-dialog-steps.js +45 -0
- package/steps/sparql-editor-steps.js +18 -4
- package/steps/ttyg/ttyg-agent-settings-modal.steps.js +1 -1
- package/steps/visual-graph-split-button-steps.js +45 -0
- package/steps/visual-graph-steps.js +69 -3
- package/steps/yasgui/yasr-steps.js +30 -6
- package/stubs/cluster/remote-location-stubs.js +4 -0
- package/stubs/graph-config-stubs.js +17 -0
- package/stubs/guides/guides-stubs.js +8 -0
- package/stubs/repositories/repositories-stubs.js +22 -0
- package/stubs/security-stubs.js +4 -0
- package/stubs/sparql-stubs.js +10 -0
- package/support/commands.js +1 -0
- package/support/e2e-security.js +1 -1
- package/support/repository-commands.js +22 -3
- package/support/settings-commands.js +18 -2
- package/support/url-commands.js +13 -0
- package/e2e-legacy/home/cookie-policy.spec.js +0 -108
|
@@ -10,157 +10,363 @@ describe('Visual Graph', () => {
|
|
|
10
10
|
|
|
11
11
|
beforeEach(() => {
|
|
12
12
|
repositoryId = 'visual-graph-guide-step-' + Date.now();
|
|
13
|
-
GuidesStubs.stubVisualGraphGuide();
|
|
14
13
|
cy.createRepository({id: repositoryId});
|
|
15
14
|
cy.presetRepository(repositoryId);
|
|
16
15
|
cy.enableAutocomplete(repositoryId);
|
|
17
16
|
cy.importServerFile(repositoryId, FILE_TO_IMPORT);
|
|
18
|
-
|
|
19
|
-
GuideSteps.visit();
|
|
20
|
-
GuideSteps.verifyGuidesListExists();
|
|
21
|
-
cy.wait('@getGuides');
|
|
22
|
-
GuideSteps.runFirstGuide()
|
|
23
17
|
});
|
|
24
18
|
|
|
25
19
|
afterEach(() => {
|
|
26
20
|
cy.deleteRepository(repositoryId);
|
|
27
21
|
});
|
|
28
22
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
23
|
+
describe('Visual graph explore guide', () => {
|
|
24
|
+
beforeEach(() => {
|
|
25
|
+
GuidesStubs.stubVisualGraphGuide();
|
|
26
|
+
GuideSteps.visit();
|
|
27
|
+
GuideSteps.verifyGuidesListExists();
|
|
28
|
+
cy.wait('@getGuides');
|
|
29
|
+
GuideSteps.runFirstGuide();
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
it('Should explore the visual graph (User interaction)', () => {
|
|
33
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 1/6');
|
|
34
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The following steps show how to use the Visual graph view to explore data in a visual manner.');
|
|
35
|
+
GuideDialogSteps.clickOnNextButton();
|
|
36
|
+
|
|
37
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 2/6');
|
|
38
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Explore menu.');
|
|
39
|
+
MainMenuSteps.clickOnExplore();
|
|
40
|
+
|
|
41
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 3/6');
|
|
42
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Visual graph menu.');
|
|
43
|
+
MainMenuSteps.clickOnSubmenuVisualGraph();
|
|
44
|
+
|
|
45
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 4/6');
|
|
46
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Enter wine in the Easy graph text input.');
|
|
47
|
+
GuideDialogSteps.clickOnNextButton();
|
|
48
|
+
|
|
49
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 5/6');
|
|
50
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#Wine IRI to show the visual graph.');
|
|
51
|
+
VisualGraphSteps.clickOnAutocompleteElement('wine <http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#Wine>');
|
|
52
|
+
|
|
53
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 6/6');
|
|
54
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The graph shows connections between the start node, wine, and other nodes. Each arrow represents one or more connections (RDF statements).');
|
|
55
|
+
GuideDialogSteps.clickOnNextButton();
|
|
56
|
+
|
|
57
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph nodes');
|
|
58
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('A circle represents an RDF resource. In this case, wine.');
|
|
59
|
+
GuideDialogSteps.clickOnNextButton();
|
|
60
|
+
|
|
61
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph links');
|
|
62
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('An arrow with a label represents one or more links between nodes. In this case, the arrow shows the relation Wine → type → Potable Liquid.');
|
|
63
|
+
GuideDialogSteps.clickOnNextButton();
|
|
64
|
+
|
|
65
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties — 1/6');
|
|
66
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click on Wine to show its properties.');
|
|
67
|
+
VisualGraphSteps.clickOnNode('http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#Wine');
|
|
68
|
+
|
|
69
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties — 2/6');
|
|
70
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The side panel shows the properties of the clicked node, Wine.');
|
|
71
|
+
GuideDialogSteps.clickOnNextButton();
|
|
72
|
+
|
|
73
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties — 3/6');
|
|
74
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Types shows all the RDF types for Wine.We can see that Wine has a single type, owl:Class.');
|
|
75
|
+
GuideDialogSteps.clickOnNextButton();
|
|
76
|
+
|
|
77
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties — 4/6');
|
|
78
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The values for generic properties like rdfs:label are listed in dedicated sections.This shows the label of Wine.');
|
|
79
|
+
GuideDialogSteps.clickOnNextButton();
|
|
80
|
+
|
|
81
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties — 5/6');
|
|
82
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('This shows the label of Wine.');
|
|
83
|
+
GuideDialogSteps.clickOnNextButton();
|
|
84
|
+
|
|
85
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties — 6/6');
|
|
86
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('You can close the panel by clicking on the X icon.');
|
|
87
|
+
VisualGraphSteps.closeSidePanel();
|
|
88
|
+
|
|
89
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph: expand node');
|
|
90
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Double click on Whitehall Lane Primavera to expand the graph.');
|
|
91
|
+
VisualGraphSteps.dblclickOnNode('http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#WhitehallLanePrimavera');
|
|
92
|
+
|
|
93
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph nodes');
|
|
94
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('A circle represents an RDF resource. In this case, Napa Region.');
|
|
95
|
+
GuideDialogSteps.clickOnNextButton();
|
|
96
|
+
|
|
97
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('End of guide');
|
|
98
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('This guide has ended.');
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
it('Should explore the visual graph (Next flow)', () => {
|
|
102
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 1/6');
|
|
103
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The following steps show how to use the Visual graph view to explore data in a visual manner.');
|
|
104
|
+
GuideDialogSteps.clickOnNextButton();
|
|
105
|
+
|
|
106
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 2/6');
|
|
107
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Explore menu.');
|
|
108
|
+
GuideDialogSteps.clickOnNextButton();
|
|
109
|
+
|
|
110
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 3/6');
|
|
111
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Visual graph menu.');
|
|
112
|
+
GuideDialogSteps.clickOnNextButton();
|
|
113
|
+
|
|
114
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 4/6');
|
|
115
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Enter wine in the Easy graph text input.');
|
|
116
|
+
GuideDialogSteps.clickOnNextButton();
|
|
117
|
+
|
|
118
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 5/6');
|
|
119
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#Wine IRI to show the visual graph.');
|
|
120
|
+
GuideDialogSteps.clickOnNextButton();
|
|
121
|
+
|
|
122
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 6/6');
|
|
123
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The graph shows connections between the start node, wine, and other nodes. Each arrow represents one or more connections (RDF statements).');
|
|
124
|
+
GuideDialogSteps.clickOnNextButton();
|
|
125
|
+
|
|
126
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph nodes');
|
|
127
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('A circle represents an RDF resource. In this case, wine.');
|
|
128
|
+
GuideDialogSteps.clickOnNextButton();
|
|
129
|
+
|
|
130
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph links');
|
|
131
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('An arrow with a label represents one or more links between nodes. In this case, the arrow shows the relation Wine → type → Potable Liquid.');
|
|
132
|
+
GuideDialogSteps.clickOnNextButton();
|
|
133
|
+
|
|
134
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties — 1/6');
|
|
135
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click on Wine to show its properties.');
|
|
136
|
+
GuideDialogSteps.clickOnNextButton();
|
|
137
|
+
|
|
138
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties — 2/6');
|
|
139
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The side panel shows the properties of the clicked node, Wine.');
|
|
140
|
+
GuideDialogSteps.clickOnNextButton();
|
|
141
|
+
|
|
142
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties — 3/6');
|
|
143
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Types shows all the RDF types for Wine.We can see that Wine has a single type, owl:Class.');
|
|
144
|
+
GuideDialogSteps.clickOnNextButton();
|
|
145
|
+
|
|
146
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties — 4/6');
|
|
147
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The values for generic properties like rdfs:label are listed in dedicated sections.This shows the label of Wine.');
|
|
148
|
+
GuideDialogSteps.clickOnNextButton();
|
|
149
|
+
|
|
150
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties — 5/6');
|
|
151
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('This shows the label of Wine.');
|
|
152
|
+
GuideDialogSteps.clickOnNextButton();
|
|
153
|
+
|
|
154
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties — 6/6');
|
|
155
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('You can close the panel by clicking on the X icon.');
|
|
156
|
+
GuideDialogSteps.clickOnNextButton();
|
|
157
|
+
|
|
158
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph: expand node');
|
|
159
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Double click on Whitehall Lane Primavera to expand the graph.');
|
|
160
|
+
GuideDialogSteps.clickOnNextButton();
|
|
161
|
+
|
|
162
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph nodes');
|
|
163
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('A circle represents an RDF resource. In this case, Napa Region.');
|
|
164
|
+
GuideDialogSteps.clickOnNextButton();
|
|
165
|
+
|
|
166
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('End of guide');
|
|
167
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('This guide has ended.');
|
|
168
|
+
});
|
|
96
169
|
});
|
|
97
170
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
171
|
+
describe('Visual graph create config guide', () => {
|
|
172
|
+
beforeEach(() => {
|
|
173
|
+
cy.deleteGraphConfig('visual');
|
|
174
|
+
cy.intercept('rest/explore-graph/node?config=**').as('getNodes');
|
|
175
|
+
GuidesStubs.stubVisualGraphConfigGuide();
|
|
176
|
+
GuideSteps.visit();
|
|
177
|
+
GuideSteps.verifyGuidesListExists();
|
|
178
|
+
cy.wait('@getGuides');
|
|
179
|
+
GuideSteps.runFirstGuide();
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
it('Should create a visual graph config (User interaction)', () => {
|
|
183
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 1/22');
|
|
184
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Explore menu.');
|
|
185
|
+
GuideDialogSteps.clickOnNextButton();
|
|
186
|
+
|
|
187
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 2/22');
|
|
188
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Visual graph menu.');
|
|
189
|
+
GuideDialogSteps.clickOnNextButton();
|
|
190
|
+
|
|
191
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 3/22');
|
|
192
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the create config button to Create graph config.');
|
|
193
|
+
VisualGraphSteps.createCustomGraph();
|
|
194
|
+
|
|
195
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 4/22');
|
|
196
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Enter a name for your visual graph configuration.');
|
|
197
|
+
VisualGraphSteps.typeGraphConfigName('visual');
|
|
198
|
+
GuideDialogSteps.clickOnNextButton();
|
|
199
|
+
|
|
200
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 5/22');
|
|
201
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Enter a description: my description');
|
|
202
|
+
VisualGraphSteps.typeGraphConfigDescription('my description');
|
|
203
|
+
GuideDialogSteps.clickOnNextButton();
|
|
204
|
+
|
|
205
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 6/22');
|
|
206
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Copy and use the following IRI as the starting point for the visual graph: my hint');
|
|
207
|
+
VisualGraphSteps.typeGraphConfigHint('my hint');
|
|
208
|
+
GuideDialogSteps.clickOnNextButton();
|
|
209
|
+
|
|
210
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 7/22');
|
|
211
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Starting point defines how the visual graph begins when it is opened. It determines the first resource or set of results that will appear in the graph and from which the visualization starts.');
|
|
212
|
+
GuideDialogSteps.clickOnNextButton();
|
|
213
|
+
|
|
214
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 9/22');
|
|
215
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Select Start with a fixed node to always start the visual graph from a specific resource.')
|
|
216
|
+
VisualGraphSteps.selectStartMode('node');
|
|
217
|
+
|
|
218
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 10/22');
|
|
219
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Enter the following text: MerlotGrape');
|
|
220
|
+
VisualGraphSteps.searchForRdfResource('MerlotGrape');
|
|
221
|
+
GuideDialogSteps.clickOnNextButton();
|
|
222
|
+
|
|
223
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 11/22');
|
|
224
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click on http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#MerlotGrape');
|
|
225
|
+
VisualGraphSteps.clickOnAutocompleteElement('http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#MerlotGrape');
|
|
226
|
+
|
|
227
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 12/22');
|
|
228
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Graph expansion tab');
|
|
229
|
+
VisualGraphSteps.openConfigTab(2);
|
|
230
|
+
|
|
231
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 13/22');
|
|
232
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Enter the following SPARQL query:');
|
|
233
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The graph expansion query defines what happens when a node is expanded in the visual graph. Expanding a node loads additional resources connected to it and adds them to the graph as new nodes and edges.');
|
|
234
|
+
GuideDialogSteps.copyQueryToEditor();
|
|
235
|
+
GuideDialogSteps.clickOnNextButton();
|
|
236
|
+
|
|
237
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 14/22');
|
|
238
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Include inferred data in results includes inferred statements produced by reasoning in the query results. Clicking the toggle disables this behavior.');
|
|
239
|
+
GuideDialogSteps.clickOnNextButton();
|
|
240
|
+
|
|
241
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 15/22');
|
|
242
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Expand results over owl sameAs includes equivalent resources connected with owl:sameAs in the query results. Clicking the toggle disables this behavior.');
|
|
243
|
+
GuideDialogSteps.clickOnNextButton();
|
|
244
|
+
|
|
245
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 16/22');
|
|
246
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The Sample queries includes example graph expansion queries. Unfiltered object properties shows all object property connections of a node, while Filtered object properties shows only selected ones.');
|
|
247
|
+
GuideDialogSteps.clickOnNextButton();
|
|
248
|
+
|
|
249
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 17/22');
|
|
250
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Check the Share visual graph with other users box to make the visual graph configuration available to other users in the repository.');
|
|
251
|
+
VisualGraphSteps.shareVisualGraphWithOtherUsers();
|
|
252
|
+
|
|
253
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 18/22');
|
|
254
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click to save the visual graph configuration.');
|
|
255
|
+
VisualGraphSteps.saveConfig();
|
|
256
|
+
|
|
257
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 19/22');
|
|
258
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click the visual graph you just created to open and explore it.');
|
|
259
|
+
VisualGraphSteps.selectConfig('visual');
|
|
260
|
+
|
|
261
|
+
Cypress._.times(4, () => cy.wait('@getNodes'));
|
|
262
|
+
|
|
263
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 20/22');
|
|
264
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Enter 200 as the maximum number of links to show.');
|
|
265
|
+
VisualGraphSteps.updateLinksLimitField(200);
|
|
266
|
+
GuideDialogSteps.clickOnNextButton();
|
|
267
|
+
|
|
268
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 21/22');
|
|
269
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Double click on WineGrape to expand the graph.');
|
|
270
|
+
VisualGraphSteps.dblclickOnNode('http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#WineGrape')
|
|
271
|
+
|
|
272
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 22/22');
|
|
273
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Scrolling with the mouse wheel or two fingers on the touchpad zooms the visual graph in and out.');
|
|
274
|
+
GuideDialogSteps.clickOnNextButton();
|
|
275
|
+
|
|
276
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('End of guide');
|
|
277
|
+
});
|
|
278
|
+
|
|
279
|
+
it('Should create a visual graph config (next flow)', () => {
|
|
280
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 1/22');
|
|
281
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Explore menu.');
|
|
282
|
+
GuideDialogSteps.clickOnNextButton();
|
|
283
|
+
|
|
284
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 2/22');
|
|
285
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Visual graph menu.');
|
|
286
|
+
GuideDialogSteps.clickOnNextButton();
|
|
287
|
+
|
|
288
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 3/22');
|
|
289
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the create config button to Create graph config.');
|
|
290
|
+
GuideDialogSteps.clickOnNextButton();
|
|
291
|
+
|
|
292
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 4/22');
|
|
293
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Enter a name for your visual graph configuration.');
|
|
294
|
+
VisualGraphSteps.typeGraphConfigName('visual');
|
|
295
|
+
GuideDialogSteps.clickOnNextButton();
|
|
296
|
+
|
|
297
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 5/22');
|
|
298
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Enter a description: my description');
|
|
299
|
+
GuideDialogSteps.clickOnNextButton();
|
|
300
|
+
|
|
301
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 6/22');
|
|
302
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Copy and use the following IRI as the starting point for the visual graph: my hint');
|
|
303
|
+
GuideDialogSteps.clickOnNextButton();
|
|
304
|
+
|
|
305
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 7/22');
|
|
306
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Starting point defines how the visual graph begins when it is opened. It determines the first resource or set of results that will appear in the graph and from which the visualization starts.');
|
|
307
|
+
GuideDialogSteps.clickOnNextButton();
|
|
102
308
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
309
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 9/22');
|
|
310
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Select Start with a fixed node to always start the visual graph from a specific resource.')
|
|
311
|
+
GuideDialogSteps.clickOnNextButton();
|
|
106
312
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
313
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 10/22');
|
|
314
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Enter the following text: MerlotGrape');
|
|
315
|
+
GuideDialogSteps.clickOnNextButton();
|
|
110
316
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
317
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 11/22');
|
|
318
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click on http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#MerlotGrape');
|
|
319
|
+
GuideDialogSteps.clickOnNextButton();
|
|
114
320
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
321
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 12/22');
|
|
322
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Graph expansion tab');
|
|
323
|
+
GuideDialogSteps.clickOnNextButton();
|
|
118
324
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
325
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 13/22');
|
|
326
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Enter the following SPARQL query:');
|
|
327
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The graph expansion query defines what happens when a node is expanded in the visual graph. Expanding a node loads additional resources connected to it and adds them to the graph as new nodes and edges.');
|
|
328
|
+
GuideDialogSteps.clickOnNextButton();
|
|
122
329
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
330
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 14/22');
|
|
331
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Include inferred data in results includes inferred statements produced by reasoning in the query results. Clicking the toggle disables this behavior.');
|
|
332
|
+
GuideDialogSteps.clickOnNextButton();
|
|
126
333
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
334
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 15/22');
|
|
335
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Expand results over owl sameAs includes equivalent resources connected with owl:sameAs in the query results. Clicking the toggle disables this behavior.');
|
|
336
|
+
GuideDialogSteps.clickOnNextButton();
|
|
130
337
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
338
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 16/22');
|
|
339
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The Sample queries includes example graph expansion queries. Unfiltered object properties shows all object property connections of a node, while Filtered object properties shows only selected ones.');
|
|
340
|
+
GuideDialogSteps.clickOnNextButton();
|
|
134
341
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
342
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 17/22');
|
|
343
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Check the Share visual graph with other users box to make the visual graph configuration available to other users in the repository.');
|
|
344
|
+
VisualGraphSteps.shareVisualGraphWithOtherUsers();
|
|
138
345
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
346
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 18/22');
|
|
347
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click to save the visual graph configuration.');
|
|
348
|
+
GuideDialogSteps.clickOnNextButton();
|
|
142
349
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
350
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 19/22');
|
|
351
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click the visual graph you just created to open and explore it.');
|
|
352
|
+
VisualGraphSteps.selectConfig('visual');
|
|
146
353
|
|
|
147
|
-
|
|
148
|
-
GuideDialogSteps.assertDialogWithContentIsVisible('This shows the label of Wine.');
|
|
149
|
-
GuideDialogSteps.clickOnNextButton();
|
|
354
|
+
Cypress._.times(4, () => cy.wait('@getNodes'));
|
|
150
355
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
356
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 20/22');
|
|
357
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Enter 200 as the maximum number of links to show.');
|
|
358
|
+
VisualGraphSteps.updateLinksLimitField(200);
|
|
359
|
+
GuideDialogSteps.clickOnNextButton();
|
|
154
360
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
361
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 21/22');
|
|
362
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Double click on WineGrape to expand the graph.');
|
|
363
|
+
GuideDialogSteps.clickOnNextButton();
|
|
158
364
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
365
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 22/22');
|
|
366
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Scrolling with the mouse wheel or two fingers on the touchpad zooms the visual graph in and out.');
|
|
367
|
+
GuideDialogSteps.clickOnNextButton();
|
|
162
368
|
|
|
163
|
-
|
|
164
|
-
|
|
369
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('End of guide');
|
|
370
|
+
});
|
|
165
371
|
});
|
|
166
372
|
});
|
|
@@ -14,6 +14,39 @@ describe('Guides autostart', () => {
|
|
|
14
14
|
GuideSteps.assertPageNotInteractive();
|
|
15
15
|
GuideDialogSteps.assertDialogWithTitleIsVisible(`Welcome to`);
|
|
16
16
|
});
|
|
17
|
+
|
|
18
|
+
it('should not autostart the guide if it has been completed via autostart before', () => {
|
|
19
|
+
// Given, I visit the home page with autostart guide parameter in URL
|
|
20
|
+
GuideSteps.autostartGuide(guideName);
|
|
21
|
+
// Then, I should see the guide
|
|
22
|
+
GuideSteps.assertPageNotInteractive();
|
|
23
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible(`Welcome to`);
|
|
24
|
+
|
|
25
|
+
// When, I finish the guide
|
|
26
|
+
GuideDialogSteps.clickOnNextButton();
|
|
27
|
+
GuideDialogSteps.clickOnNextButton();
|
|
28
|
+
// skip create repo
|
|
29
|
+
GuideDialogSteps.clickOnSkipButton();
|
|
30
|
+
// skip select repo
|
|
31
|
+
GuideDialogSteps.clickOnSkipButton();
|
|
32
|
+
// skip autocomplete
|
|
33
|
+
GuideDialogSteps.clickOnSkipButton();
|
|
34
|
+
// skip import
|
|
35
|
+
GuideDialogSteps.clickOnSkipButton();
|
|
36
|
+
// skip visual graph
|
|
37
|
+
GuideDialogSteps.clickOnSkipButton();
|
|
38
|
+
// skip sparql
|
|
39
|
+
GuideDialogSteps.clickOnSkipButton();
|
|
40
|
+
// close the dialog, completing the guide
|
|
41
|
+
GuideDialogSteps.clickOnCloseButton();
|
|
42
|
+
|
|
43
|
+
// Then, I should not see the guide anymore. A disabled flag should be set to true in the storage, when the
|
|
44
|
+
// guide is completed via autostart, preventing the guide from autostarting again.
|
|
45
|
+
GuideSteps.autostartGuide(guideName);
|
|
46
|
+
HomeSteps.getTutorialPanel().should('be.visible');
|
|
47
|
+
GuideSteps.getGuidesModal().should('not.exist');
|
|
48
|
+
GuideDialogSteps.getModalDialog().should('not.exist');
|
|
49
|
+
});
|
|
17
50
|
});
|
|
18
51
|
|
|
19
52
|
describe('With security enabled', () => {
|
|
@@ -26,7 +59,7 @@ describe('Guides autostart', () => {
|
|
|
26
59
|
cy.switchOffSecurity(true);
|
|
27
60
|
});
|
|
28
61
|
|
|
29
|
-
|
|
62
|
+
describe('admin', () => {
|
|
30
63
|
it('Should autostart guide with admin', () => {
|
|
31
64
|
// Given, I visit the home page with autostart guide parameter in URL
|
|
32
65
|
GuideSteps.autostartGuide(guideName);
|
|
@@ -38,7 +71,7 @@ describe('Guides autostart', () => {
|
|
|
38
71
|
});
|
|
39
72
|
});
|
|
40
73
|
|
|
41
|
-
|
|
74
|
+
describe('repo manager', () => {
|
|
42
75
|
beforeEach(() => {
|
|
43
76
|
cy.loginAsAdmin();
|
|
44
77
|
cy.createUser({
|
|
@@ -64,7 +97,7 @@ describe('Guides autostart', () => {
|
|
|
64
97
|
});
|
|
65
98
|
});
|
|
66
99
|
|
|
67
|
-
|
|
100
|
+
describe('user', () => {
|
|
68
101
|
beforeEach(() => {
|
|
69
102
|
cy.loginAsAdmin();
|
|
70
103
|
cy.createUser({
|