graphdb-workbench-tests 3.4.0-dynamic-guides-test → 3.4.0-migrated-guide-services

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.
Files changed (34) hide show
  1. package/e2e-legacy/guides/navigation/navigation-guide.spec.js +64 -0
  2. package/e2e-legacy/guides/ttyg/edit-agent/edit-ttyg-agent-guide.spec.js +1 -0
  3. package/e2e-legacy/guides/visual-graph/visual-graph-guide.spec.js +344 -122
  4. package/e2e-legacy/help/guides/guides-autostart.spec.js +36 -3
  5. package/e2e-legacy/help/guides/guides-confirm-cancel-dialog.js +83 -0
  6. package/e2e-legacy/home/cookie-policy/cookie-policy.spec.js +182 -0
  7. package/e2e-legacy/ttyg/chat-panel.spec.js +9 -0
  8. package/e2e-legacy/ttyg/clone-agent.spec.js +22 -0
  9. package/e2e-legacy/ttyg/edit-agent.spec.js +17 -0
  10. package/e2e-security/setup/home/cookie-policy.spec.js +232 -6
  11. package/e2e-security/setup/users-and-access/turn-on-security-and-password-change.spec.js +72 -59
  12. package/fixtures/guides/confirm-cancel-dialog/confirm-cancel-dialog-guide.json +15 -0
  13. package/fixtures/guides/navigation/navigation-guide.json +60 -0
  14. package/fixtures/guides/visual-graph/visual-graph-config-guide.json +39 -0
  15. package/fixtures/ttyg/chats/explain-response-1.json +2 -48
  16. package/npm-shrinkwrap.json +2 -2
  17. package/package.json +1 -1
  18. package/steps/cookie-policy/cookie-consent-banner-steps.js +21 -0
  19. package/steps/cookie-policy/cookie-policy-modal.steps.js +56 -0
  20. package/steps/guides/guide-dialog-steps.js +56 -2
  21. package/steps/header-steps.js +13 -0
  22. package/steps/home-steps.js +0 -20
  23. package/steps/login-steps.js +1 -0
  24. package/steps/main-menu-steps.js +1 -0
  25. package/steps/setup/settings-steps.js +1 -1
  26. package/steps/shared-modal-dialog-steps.js +45 -0
  27. package/steps/visual-graph-steps.js +57 -3
  28. package/stubs/guides/guides-stubs.js +8 -0
  29. package/stubs/repositories/repositories-stubs.js +22 -0
  30. package/stubs/security-stubs.js +4 -0
  31. package/stubs/sparql-stubs.js +10 -0
  32. package/support/e2e-security.js +1 -1
  33. package/support/settings-commands.js +18 -2
  34. package/e2e-legacy/home/cookie-policy.spec.js +0 -108
@@ -0,0 +1,64 @@
1
+ import {GuidesStubs} from "../../../stubs/guides/guides-stubs.js";
2
+ import {GuideSteps} from "../../../steps/guides/guide-steps.js";
3
+ import {GuideDialogSteps} from "../../../steps/guides/guide-dialog-steps.js";
4
+ import {NotFoundSteps} from "../../../steps/not-found/not-found-steps.js";
5
+ import {BaseSteps} from "../../../steps/base-steps.js";
6
+ import {RepositoriesStubs} from "../../../stubs/repositories/repositories-stubs.js";
7
+
8
+ describe('navigation guide', () => {
9
+ let repositoryId;
10
+
11
+ beforeEach(() => {
12
+ repositoryId = 'navigation-guide-' + Date.now();
13
+ RepositoriesStubs.stubBaseEndpoints(repositoryId);
14
+ cy.createRepository({id: repositoryId});
15
+ cy.presetRepository(repositoryId);
16
+ GuidesStubs.stubNavigationGuide();
17
+ GuideSteps.visit();
18
+ GuideSteps.verifyGuidesListExists();
19
+ cy.wait('@getGuides');
20
+ GuideSteps.runFirstGuide();
21
+ });
22
+
23
+ afterEach(() => {
24
+ cy.deleteRepository(repositoryId);
25
+ });
26
+
27
+ it('should navigate between microfrontends', () => {
28
+ // Given I am on the 404 page, which is an angular view
29
+ BaseSteps.getUrl().should('include', '404');
30
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Navigation');
31
+ GuideDialogSteps.assertDialogWithContentIsVisible('This is a 404 page');
32
+ GuideDialogSteps.clickOnNextButton();
33
+
34
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Navigation');
35
+ GuideDialogSteps.assertDialogWithContentIsVisible('This is the go back home button');
36
+
37
+ // When I navigate to the home page
38
+ NotFoundSteps.clickGoHomeButton();
39
+
40
+ // Then I should see the home page, which is an angularjs view
41
+ BaseSteps.getUrl().should('include', '/');
42
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Navigation');
43
+ GuideDialogSteps.assertDialogWithContentIsVisible('This is the home page');
44
+ // When, I navigate to an angular view again (/sparql-new)
45
+ GuideDialogSteps.clickOnNextButton();
46
+
47
+ // Then I should see the new sparql view, which is an angular view
48
+ BaseSteps.getUrl().should('include', 'sparql-new');
49
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Navigation');
50
+ GuideDialogSteps.assertDialogWithContentIsVisible('This is the new sparql view');
51
+
52
+ // When, I navigate to an angularjs view again (import)
53
+ GuideDialogSteps.clickOnNextButton();
54
+
55
+ // Then I should see the import page, which is an angularjs view
56
+ BaseSteps.getUrl().should('include', 'import');
57
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Navigation');
58
+ GuideDialogSteps.assertDialogWithContentIsVisible('This is the import view');
59
+ GuideDialogSteps.clickOnNextButton();
60
+
61
+ GuideDialogSteps.assertDialogWithTitleIsVisible('End of guide');
62
+ GuideDialogSteps.assertDialogWithContentIsVisible('This guide has ended');
63
+ });
64
+ });
@@ -46,6 +46,7 @@ describe('Edit TTYG agent guide', () => {
46
46
  TTYGStubs.stubAgentDefaultsGet();
47
47
  TTYGStubs.stubChatGet();
48
48
  TTYGStubs.stubAgentEdit();
49
+ RepositoriesStubs.stubRepositoryModel(repositoryId);
49
50
 
50
51
  GuideDialogSteps.assertDialogWithTitleIsVisible('Edit an agent — 1/18');
51
52
  GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Lab menu.');
@@ -10,157 +10,379 @@ 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
- it('Should explore the visual graph (User interaction)', () => {
30
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 1/6');
31
- GuideDialogSteps.assertDialogWithContentIsVisible('The following steps show how to use the Visual graph view to explore data in a visual manner.');
32
- GuideDialogSteps.clickOnNextButton();
33
-
34
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 2/6');
35
- GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Explore menu.');
36
- MainMenuSteps.clickOnExplore();
37
-
38
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore 3/6');
39
- GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Visual graph menu.');
40
- MainMenuSteps.clickOnSubmenuVisualGraph();
41
-
42
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 4/6');
43
- GuideDialogSteps.assertDialogWithContentIsVisible('Enter wine in the Easy graph text input.');
44
- GuideDialogSteps.clickOnNextButton();
45
-
46
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 5/6');
47
- GuideDialogSteps.assertDialogWithContentIsVisible('Click on the http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#Wine IRI to show the visual graph.');
48
- VisualGraphSteps.clickOnAutocompleteElement('wine <http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#Wine>');
49
-
50
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 6/6');
51
- GuideDialogSteps.assertDialogWithContentIsVisible('The graph shows connections between the start node, wine, and other nodes. Each arrow represents one or more connections (RDF statements).');
52
- GuideDialogSteps.clickOnNextButton();
53
-
54
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph nodes');
55
- GuideDialogSteps.assertDialogWithContentIsVisible('A circle represents an RDF resource. In this case, wine.');
56
- GuideDialogSteps.clickOnNextButton();
57
-
58
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph links');
59
- 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.');
60
- GuideDialogSteps.clickOnNextButton();
61
-
62
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties — 1/6');
63
- GuideDialogSteps.assertDialogWithContentIsVisible('Click on Wine to show its properties.');
64
- VisualGraphSteps.clickOnNode('http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#Wine');
65
-
66
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties — 2/6');
67
- GuideDialogSteps.assertDialogWithContentIsVisible('The side panel shows the properties of the clicked node, Wine.');
68
- GuideDialogSteps.clickOnNextButton();
69
-
70
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties — 3/6');
71
- GuideDialogSteps.assertDialogWithContentIsVisible('Types shows all the RDF types for Wine.We can see that Wine has a single type, owl:Class.');
72
- GuideDialogSteps.clickOnNextButton();
73
-
74
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties — 4/6');
75
- GuideDialogSteps.assertDialogWithContentIsVisible('The values for generic properties like rdfs:label are listed in dedicated sections.This shows the label of Wine.');
76
- GuideDialogSteps.clickOnNextButton();
77
-
78
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties — 5/6');
79
- GuideDialogSteps.assertDialogWithContentIsVisible('This shows the label of Wine.');
80
- GuideDialogSteps.clickOnNextButton();
81
-
82
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties — 6/6');
83
- GuideDialogSteps.assertDialogWithContentIsVisible('You can close the panel by clicking on the X icon.');
84
- VisualGraphSteps.closeSidePanel();
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
+ });
169
+ });
85
170
 
86
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph: expand node');
87
- GuideDialogSteps.assertDialogWithContentIsVisible('Double click on Whitehall Lane Primavera to expand the graph.');
88
- VisualGraphSteps.dblclickOnNode('http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#WhitehallLanePrimavera');
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/24');
184
+ GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Explore menu.');
185
+ GuideDialogSteps.clickOnNextButton();
186
+
187
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 2/24');
188
+ GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Visual graph menu.');
189
+ GuideDialogSteps.clickOnNextButton();
190
+
191
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 3/24');
192
+ GuideDialogSteps.assertDialogWithContentIsVisible('Click on the create config button to Create graph config.');
193
+ VisualGraphSteps.createCustomGraph();
194
+
195
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 4/24');
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/24');
201
+ GuideDialogSteps.assertDialogWithContentIsVisible('Enter a description: my description');
202
+ VisualGraphSteps.typeGraphConfigDescription('my description');
203
+ GuideDialogSteps.clickOnNextButton();
204
+
205
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 6/24');
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/24');
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/24');
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/24');
219
+ GuideDialogSteps.assertDialogWithContentIsVisible('Enter the following text: MerlotGrape');
220
+ VisualGraphSteps.searchForRdfResource('MerlotGrape');
221
+ GuideDialogSteps.clickOnNextButton();
222
+
223
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 11/24');
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/24');
228
+ GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Graph expansion tab');
229
+ VisualGraphSteps.openConfigTab(2);
230
+
231
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 13/24');
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/24');
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/24');
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/24');
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/24');
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/24');
254
+ GuideDialogSteps.assertDialogWithContentIsVisible('Click to save the visual graph configuration.');
255
+ VisualGraphSteps.saveConfig();
256
+
257
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 19/24');
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/24');
264
+ GuideDialogSteps.assertDialogWithContentIsVisible('Click on Graph settings.');
265
+ VisualGraphSteps.openVisualGraphSettings();
266
+
267
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 21/24');
268
+ GuideDialogSteps.assertDialogWithContentIsVisible('Enter 200 as the maximum number of links to show.');
269
+ VisualGraphSteps.updateLinksLimitField(200);
270
+ GuideDialogSteps.clickOnNextButton();
271
+
272
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 22/24');
273
+ GuideDialogSteps.assertDialogWithContentIsVisible('Click to save the graph settings.');
274
+ VisualGraphSteps.saveSettings();
275
+
276
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 23/24');
277
+ GuideDialogSteps.assertDialogWithContentIsVisible('Double click on WineGrape to expand the graph.');
278
+ VisualGraphSteps.dblclickOnNode('http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#WineGrape')
279
+
280
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 24/24');
281
+ GuideDialogSteps.assertDialogWithContentIsVisible('Scrolling with the mouse wheel or two fingers on the touchpad zooms the visual graph in and out.');
282
+ GuideDialogSteps.clickOnNextButton();
283
+
284
+ GuideDialogSteps.assertDialogWithTitleIsVisible('End of guide');
285
+ });
286
+
287
+ it('Should create a visual graph config (next flow)', () => {
288
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 1/24');
289
+ GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Explore menu.');
290
+ GuideDialogSteps.clickOnNextButton();
291
+
292
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 2/24');
293
+ GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Visual graph menu.');
294
+ GuideDialogSteps.clickOnNextButton();
295
+
296
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 3/24');
297
+ GuideDialogSteps.assertDialogWithContentIsVisible('Click on the create config button to Create graph config.');
298
+ GuideDialogSteps.clickOnNextButton();
299
+
300
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 4/24');
301
+ GuideDialogSteps.assertDialogWithContentIsVisible('Enter a name for your visual graph configuration.');
302
+ VisualGraphSteps.typeGraphConfigName('visual');
303
+ GuideDialogSteps.clickOnNextButton();
89
304
 
90
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph nodes');
91
- GuideDialogSteps.assertDialogWithContentIsVisible('A circle represents an RDF resource. In this case, Napa Region.');
92
- GuideDialogSteps.clickOnNextButton();
305
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 5/24');
306
+ GuideDialogSteps.assertDialogWithContentIsVisible('Enter a description: my description');
307
+ GuideDialogSteps.clickOnNextButton();
93
308
 
94
- GuideDialogSteps.assertDialogWithTitleIsVisible('End of guide');
95
- GuideDialogSteps.assertDialogWithContentIsVisible('This guide has ended.');
96
- });
309
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 6/24');
310
+ GuideDialogSteps.assertDialogWithContentIsVisible('Copy and use the following IRI as the starting point for the visual graph: my hint');
311
+ GuideDialogSteps.clickOnNextButton();
97
312
 
98
- it('Should explore the visual graph (Next flow)', () => {
99
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore 1/6');
100
- GuideDialogSteps.assertDialogWithContentIsVisible('The following steps show how to use the Visual graph view to explore data in a visual manner.');
101
- GuideDialogSteps.clickOnNextButton();
313
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore 7/24');
314
+ 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.');
315
+ GuideDialogSteps.clickOnNextButton();
102
316
 
103
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 2/6');
104
- GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Explore menu.');
105
- GuideDialogSteps.clickOnNextButton();
317
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 9/24');
318
+ GuideDialogSteps.assertDialogWithContentIsVisible('Select Start with a fixed node to always start the visual graph from a specific resource.')
319
+ GuideDialogSteps.clickOnNextButton();
106
320
 
107
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 3/6');
108
- GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Visual graph menu.');
109
- GuideDialogSteps.clickOnNextButton();
321
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 10/24');
322
+ GuideDialogSteps.assertDialogWithContentIsVisible('Enter the following text: MerlotGrape');
323
+ GuideDialogSteps.clickOnNextButton();
110
324
 
111
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 4/6');
112
- GuideDialogSteps.assertDialogWithContentIsVisible('Enter wine in the Easy graph text input.');
113
- GuideDialogSteps.clickOnNextButton();
325
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 11/24');
326
+ GuideDialogSteps.assertDialogWithContentIsVisible('Click on http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#MerlotGrape');
327
+ GuideDialogSteps.clickOnNextButton();
114
328
 
115
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 5/6');
116
- GuideDialogSteps.assertDialogWithContentIsVisible('Click on the http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#Wine IRI to show the visual graph.');
117
- GuideDialogSteps.clickOnNextButton();
329
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 12/24');
330
+ GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Graph expansion tab');
331
+ GuideDialogSteps.clickOnNextButton();
118
332
 
119
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 6/6');
120
- GuideDialogSteps.assertDialogWithContentIsVisible('The graph shows connections between the start node, wine, and other nodes. Each arrow represents one or more connections (RDF statements).');
121
- GuideDialogSteps.clickOnNextButton();
333
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 13/24');
334
+ GuideDialogSteps.assertDialogWithContentIsVisible('Enter the following SPARQL query:');
335
+ 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.');
336
+ GuideDialogSteps.clickOnNextButton();
122
337
 
123
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph nodes');
124
- GuideDialogSteps.assertDialogWithContentIsVisible('A circle represents an RDF resource. In this case, wine.');
125
- GuideDialogSteps.clickOnNextButton();
338
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 14/24');
339
+ GuideDialogSteps.assertDialogWithContentIsVisible('Include inferred data in results includes inferred statements produced by reasoning in the query results. Clicking the toggle disables this behavior.');
340
+ GuideDialogSteps.clickOnNextButton();
126
341
 
127
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph links');
128
- 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.');
129
- GuideDialogSteps.clickOnNextButton();
342
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 15/24');
343
+ GuideDialogSteps.assertDialogWithContentIsVisible('Expand results over owl sameAs includes equivalent resources connected with owl:sameAs in the query results. Clicking the toggle disables this behavior.');
344
+ GuideDialogSteps.clickOnNextButton();
130
345
 
131
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties1/6');
132
- GuideDialogSteps.assertDialogWithContentIsVisible('Click on Wine to show its properties.');
133
- GuideDialogSteps.clickOnNextButton();
346
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore16/24');
347
+ 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.');
348
+ GuideDialogSteps.clickOnNextButton();
134
349
 
135
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties2/6');
136
- GuideDialogSteps.assertDialogWithContentIsVisible('The side panel shows the properties of the clicked node, Wine.');
137
- GuideDialogSteps.clickOnNextButton();
350
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore17/24');
351
+ GuideDialogSteps.assertDialogWithContentIsVisible('Check the Share visual graph with other users box to make the visual graph configuration available to other users in the repository.');
352
+ VisualGraphSteps.shareVisualGraphWithOtherUsers();
138
353
 
139
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties3/6');
140
- GuideDialogSteps.assertDialogWithContentIsVisible('Types shows all the RDF types for Wine.We can see that Wine has a single type, owl:Class.');
141
- GuideDialogSteps.clickOnNextButton();
354
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore18/24');
355
+ GuideDialogSteps.assertDialogWithContentIsVisible('Click to save the visual graph configuration.');
356
+ GuideDialogSteps.clickOnNextButton();
142
357
 
143
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties4/6');
144
- GuideDialogSteps.assertDialogWithContentIsVisible('The values for generic properties like rdfs:label are listed in dedicated sections.This shows the label of Wine.');
145
- GuideDialogSteps.clickOnNextButton();
358
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore19/24');
359
+ GuideDialogSteps.assertDialogWithContentIsVisible('Click the visual graph you just created to open and explore it.');
360
+ VisualGraphSteps.selectConfig('visual');
146
361
 
147
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties — 5/6');
148
- GuideDialogSteps.assertDialogWithContentIsVisible('This shows the label of Wine.');
149
- GuideDialogSteps.clickOnNextButton();
362
+ Cypress._.times(4, () => cy.wait('@getNodes'));
363
+
364
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 20/24');
365
+ GuideDialogSteps.assertDialogWithContentIsVisible('Click on Graph settings.');
366
+ GuideDialogSteps.clickOnNextButton();
367
+
368
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 21/24');
369
+ GuideDialogSteps.assertDialogWithContentIsVisible('Enter 200 as the maximum number of links to show.');
370
+ VisualGraphSteps.updateLinksLimitField(200);
371
+ GuideDialogSteps.clickOnNextButton();
150
372
 
151
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph properties6/6');
152
- GuideDialogSteps.assertDialogWithContentIsVisible('You can close the panel by clicking on the X icon.');
153
- GuideDialogSteps.clickOnNextButton();
373
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore22/24');
374
+ GuideDialogSteps.assertDialogWithContentIsVisible('Click to save the graph settings.');
375
+ GuideDialogSteps.clickOnNextButton();
154
376
 
155
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph: expand node');
156
- GuideDialogSteps.assertDialogWithContentIsVisible('Double click on Whitehall Lane Primavera to expand the graph.');
157
- GuideDialogSteps.clickOnNextButton();
377
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 23/24');
378
+ GuideDialogSteps.assertDialogWithContentIsVisible('Double click on WineGrape to expand the graph.');
379
+ GuideDialogSteps.clickOnNextButton();
158
380
 
159
- GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph nodes');
160
- GuideDialogSteps.assertDialogWithContentIsVisible('A circle represents an RDF resource. In this case, Napa Region.');
161
- GuideDialogSteps.clickOnNextButton();
381
+ GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 24/24');
382
+ GuideDialogSteps.assertDialogWithContentIsVisible('Scrolling with the mouse wheel or two fingers on the touchpad zooms the visual graph in and out.');
383
+ GuideDialogSteps.clickOnNextButton();
162
384
 
163
- GuideDialogSteps.assertDialogWithTitleIsVisible('End of guide');
164
- GuideDialogSteps.assertDialogWithContentIsVisible('This guide has ended.');
385
+ GuideDialogSteps.assertDialogWithTitleIsVisible('End of guide');
386
+ });
165
387
  });
166
388
  });