graphdb-workbench-tests 3.3.3 → 3.4.0-TR1
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/cypress-flaky.config.js +2 -0
- package/cypress-legacy.config.js +2 -2
- package/cypress-security.config.js +3 -14
- package/e2e-flaky/import/import-server-files-operations.spec.js +1 -1
- package/e2e-flaky/import/import-user-data-batch-operations.spec.js +1 -1
- package/e2e-flaky/setup/sparql-template-create.js +3 -18
- package/e2e-flaky/sparql-editor/actions/execute-update-query.spec.js +2 -12
- package/e2e-flaky/sparql-editor/actions/share-query.spec.js +1 -7
- package/e2e-flaky/sparql-editor/yasr/table-plugin.spec.js +1 -6
- package/e2e-legacy/explore/visual-graph/visual-graph-links-limit.spec.js +140 -0
- package/e2e-legacy/explore/visual-graph/visual.graph.spec.js +57 -85
- package/e2e-legacy/guides/execute-sparql-query/execute-sparql-query-guide.spec.js +92 -0
- package/e2e-legacy/guides/import-rdf-file/confirm-duplicate-rdf-file.spec.js +63 -0
- package/e2e-legacy/guides/import-rdf-file/import-rdf-file.spec.js +105 -0
- package/e2e-legacy/guides/navigation/navigation-guide.spec.js +64 -0
- package/e2e-legacy/guides/rdf-rank/rdf-rank-guide.spec.js +42 -0
- package/e2e-legacy/guides/table-graph-explore/table-graph-explore-guide.spec.js +167 -0
- package/e2e-legacy/guides/ttyg/edit-agent/edit-ttyg-agent-guide.spec.js +2 -2
- package/e2e-legacy/guides/visual-graph/visual-graph-guide.spec.js +372 -0
- package/e2e-legacy/guides/welcome/welcome-guide.spec.js +36 -0
- 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/help/guides/movies-interactive-guide.spec.js +47 -49
- package/e2e-legacy/repository/url-with-repository-id-parameter.spec.js +1 -0
- package/e2e-legacy/resource/resource.spec.js +1 -6
- package/e2e-legacy/setup/aclmanagement/create-rule.spec.js +3 -0
- package/e2e-legacy/setup/connectors-lucene.spec.js +24 -8
- package/e2e-legacy/sparql-editor/actions/expand-results-over-sameas.spec.js +1 -1
- package/e2e-legacy/sparql-editor/actions/show-saved-queries.spec.js +1 -6
- package/e2e-legacy/sparql-editor/yasgui-tabs.spec.js +2 -12
- package/e2e-legacy/sparql-editor/yasr/pagination.spec.js +5 -18
- package/e2e-legacy/sparql-editor/yasr/table-plugin.spec.js +1 -6
- package/e2e-legacy/sparql-editor/yasr/toolbar/visual-graph-button.spec.js +1 -6
- package/e2e-legacy/sparql-editor/yasr/yasr.spec.js +80 -0
- package/e2e-legacy/ttyg/chat-list.spec.js +2 -12
- package/e2e-legacy/ttyg/create-agent.spec.js +8 -48
- package/e2e-legacy/ttyg/edit-agent.spec.js +2 -12
- package/e2e-security/setup/users-and-access/turn-on-security-and-password-change.spec.js +73 -61
- package/fixtures/guides/confirm-cancel-dialog/confirm-cancel-dialog-guide.json +15 -0
- package/fixtures/guides/execute-sparql-query/execute-sparql-query-guide.json +54 -0
- package/fixtures/guides/import-rdf-file/confirm-duplicate-rdf-file-guide.json +30 -0
- package/fixtures/guides/import-rdf-file/import-rdf-file-guide.json +21 -0
- package/fixtures/guides/navigation/navigation-guide.json +60 -0
- package/fixtures/guides/rdf-rank/rdf-rank-guide.json +18 -0
- package/fixtures/guides/table-graph-explore/table-graph-explore-guide.json +51 -0
- package/fixtures/guides/table-graph-explore/table-graph-explore-without-substeps-guide.json +25 -0
- package/fixtures/guides/visual-graph/visual-graph-config-guide.json +39 -0
- package/fixtures/guides/visual-graph/visual-graph-guide.json +85 -0
- package/fixtures/guides/welcome/welcome-guide.json +18 -0
- package/npm-shrinkwrap.json +329 -276
- package/package.json +1 -1
- package/steps/guides/guide-dialog-steps.js +60 -2
- package/steps/main-menu-steps.js +1 -0
- package/steps/setup/acl-management-steps.js +4 -0
- package/steps/sparql-editor-steps.js +5 -4
- package/steps/sparql-steps.js +13 -1
- package/steps/visual-graph-steps.js +76 -2
- package/steps/yasgui/yasqe-steps.js +29 -4
- package/steps/yasgui/yasr-steps.js +27 -1
- package/stubs/guides/guides-stubs.js +41 -1
|
@@ -0,0 +1,372 @@
|
|
|
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 {MainMenuSteps} from "../../../steps/main-menu-steps.js";
|
|
5
|
+
import {VisualGraphSteps} from "../../../steps/visual-graph-steps.js";
|
|
6
|
+
|
|
7
|
+
describe('Visual Graph', () => {
|
|
8
|
+
const FILE_TO_IMPORT = 'wine.rdf';
|
|
9
|
+
let repositoryId;
|
|
10
|
+
|
|
11
|
+
beforeEach(() => {
|
|
12
|
+
repositoryId = 'visual-graph-guide-step-' + Date.now();
|
|
13
|
+
cy.createRepository({id: repositoryId});
|
|
14
|
+
cy.presetRepository(repositoryId);
|
|
15
|
+
cy.enableAutocomplete(repositoryId);
|
|
16
|
+
cy.importServerFile(repositoryId, FILE_TO_IMPORT);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
afterEach(() => {
|
|
20
|
+
cy.deleteRepository(repositoryId);
|
|
21
|
+
});
|
|
22
|
+
|
|
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
|
+
});
|
|
170
|
+
|
|
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();
|
|
308
|
+
|
|
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();
|
|
312
|
+
|
|
313
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 10/22');
|
|
314
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Enter the following text: MerlotGrape');
|
|
315
|
+
GuideDialogSteps.clickOnNextButton();
|
|
316
|
+
|
|
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();
|
|
320
|
+
|
|
321
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 12/22');
|
|
322
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Graph expansion tab');
|
|
323
|
+
GuideDialogSteps.clickOnNextButton();
|
|
324
|
+
|
|
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();
|
|
329
|
+
|
|
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();
|
|
333
|
+
|
|
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();
|
|
337
|
+
|
|
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();
|
|
341
|
+
|
|
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();
|
|
345
|
+
|
|
346
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 18/22');
|
|
347
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click to save the visual graph configuration.');
|
|
348
|
+
GuideDialogSteps.clickOnNextButton();
|
|
349
|
+
|
|
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');
|
|
353
|
+
|
|
354
|
+
Cypress._.times(4, () => cy.wait('@getNodes'));
|
|
355
|
+
|
|
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();
|
|
360
|
+
|
|
361
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 21/22');
|
|
362
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Double click on WineGrape to expand the graph.');
|
|
363
|
+
GuideDialogSteps.clickOnNextButton();
|
|
364
|
+
|
|
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();
|
|
368
|
+
|
|
369
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('End of guide');
|
|
370
|
+
});
|
|
371
|
+
});
|
|
372
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
|
|
5
|
+
describe('Welcome', () => {
|
|
6
|
+
let repositoryId;
|
|
7
|
+
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
repositoryId = 'welcome-guide-step-' + Date.now();
|
|
10
|
+
GuidesStubs.stubWelcomGuide();
|
|
11
|
+
cy.createRepository({id: repositoryId});
|
|
12
|
+
cy.presetRepository(repositoryId);
|
|
13
|
+
|
|
14
|
+
GuideSteps.visit();
|
|
15
|
+
GuideSteps.verifyGuidesListExists();
|
|
16
|
+
cy.wait('@getGuides');
|
|
17
|
+
GuideSteps.runFirstGuide()
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
afterEach(() => {
|
|
21
|
+
cy.deleteRepository(repositoryId);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
it.only('Should shows welcome steps', () => {
|
|
25
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Welcome to Welcome — 1/2');
|
|
26
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Throughout the guide you will see boxes like this one that will provide instructions on what to do.');
|
|
27
|
+
GuideDialogSteps.clickOnNextButton();
|
|
28
|
+
|
|
29
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Welcome to Welcome — 2/2');
|
|
30
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Test welcome guideLet\'s get started for real now!');
|
|
31
|
+
GuideDialogSteps.clickOnNextButton();
|
|
32
|
+
|
|
33
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('End of guide');
|
|
34
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('This guide has ended.');
|
|
35
|
+
});
|
|
36
|
+
});
|
|
@@ -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({
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import {GuideSteps} from "../../../steps/guides/guide-steps.js";
|
|
2
|
+
import {GuideDialogSteps} from "../../../steps/guides/guide-dialog-steps.js";
|
|
3
|
+
import {GuidesStubs} from "../../../stubs/guides/guides-stubs.js";
|
|
4
|
+
|
|
5
|
+
describe('Confirm cancel dialog', () => {
|
|
6
|
+
it('Should open confirm cancel dialog', () => {
|
|
7
|
+
GuidesStubs.stubWelcomGuide();
|
|
8
|
+
GuideSteps.visit();
|
|
9
|
+
GuideSteps.verifyGuidesListExists();
|
|
10
|
+
cy.wait('@getGuides');
|
|
11
|
+
|
|
12
|
+
// Given, I start a guide
|
|
13
|
+
GuideSteps.runFirstGuide();
|
|
14
|
+
GuideSteps.assertPageNotInteractive();
|
|
15
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible(`Welcome to`);
|
|
16
|
+
|
|
17
|
+
// When, I try to cancel the guide
|
|
18
|
+
GuideDialogSteps.clickOnCancelButton();
|
|
19
|
+
|
|
20
|
+
// Then, I should see a confirm cancel dialog
|
|
21
|
+
GuideDialogSteps.getConfirmCancelDialog().should('be.visible');
|
|
22
|
+
GuideDialogSteps.getModalDialog().should('not.exist');
|
|
23
|
+
|
|
24
|
+
// When I press the cancel button
|
|
25
|
+
GuideDialogSteps.clickConfirmCancelDialogCancelButton();
|
|
26
|
+
|
|
27
|
+
// Then, I should see the guide dialog again as I didn't cancel it
|
|
28
|
+
GuideDialogSteps.getModalDialog().should('be.visible');
|
|
29
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible(`Welcome to`);
|
|
30
|
+
|
|
31
|
+
// When I press the cancel dialog again
|
|
32
|
+
GuideDialogSteps.clickOnCancelButton();
|
|
33
|
+
GuideDialogSteps.getConfirmCancelDialog().should('be.visible');
|
|
34
|
+
GuideDialogSteps.getModalDialog().should('not.exist');
|
|
35
|
+
|
|
36
|
+
// And click on the close (X) icon button
|
|
37
|
+
GuideDialogSteps.clickOnConfirmCancelDialogCloseButton();
|
|
38
|
+
|
|
39
|
+
// Then, I should see the guide again as I didn't cancel it
|
|
40
|
+
GuideDialogSteps.getModalDialog().should('be.visible');
|
|
41
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible(`Welcome to`);
|
|
42
|
+
|
|
43
|
+
// When I try to cancel it a third time
|
|
44
|
+
GuideDialogSteps.clickOnCancelButton();
|
|
45
|
+
GuideDialogSteps.getConfirmCancelDialog().should('be.visible');
|
|
46
|
+
GuideDialogSteps.getModalDialog().should('not.exist');
|
|
47
|
+
|
|
48
|
+
// And click on exit
|
|
49
|
+
GuideDialogSteps.clickConfirmCancelDialogExitButton();
|
|
50
|
+
|
|
51
|
+
// Then, I should see the guides list and no active guide as I canceled it
|
|
52
|
+
GuideDialogSteps.getModalDialog().should('not.exist');
|
|
53
|
+
GuideDialogSteps.getConfirmCancelDialog().should('not.exist');
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
it('Should disable autostart when don\'t show again is pressed', () => {
|
|
57
|
+
const guideName = 'star-wars';
|
|
58
|
+
// Given, I visit the home page with autostart guide parameter in URL
|
|
59
|
+
GuideSteps.autostartGuide(guideName);
|
|
60
|
+
// Then, I should see the guide
|
|
61
|
+
GuideSteps.assertPageNotInteractive();
|
|
62
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible(`Welcome to`);
|
|
63
|
+
|
|
64
|
+
// When I try to cancel the dialog
|
|
65
|
+
GuideDialogSteps.clickOnCancelButton();
|
|
66
|
+
|
|
67
|
+
// Then, I should see a confirm cancel dialog with "Don't show again" button
|
|
68
|
+
GuideDialogSteps.getConfirmCancelDialog().should('be.visible');
|
|
69
|
+
GuideDialogSteps.getConfirmCancelDialogDontShowAgainButton().should('be.visible');
|
|
70
|
+
|
|
71
|
+
// When I click on the "don't show again" button
|
|
72
|
+
GuideDialogSteps.clickConfirmCancelDialogDontShowAgainButton();
|
|
73
|
+
|
|
74
|
+
// Then, the confirm cancel dialog should be closed and the guide should be canceled
|
|
75
|
+
GuideDialogSteps.getConfirmCancelDialog().should('not.exist');
|
|
76
|
+
|
|
77
|
+
// When I try to autostart it again
|
|
78
|
+
GuideSteps.autostartGuide(guideName);
|
|
79
|
+
// Then, I should not see the guide anymore. A disabled flag should be set to true in the storage,
|
|
80
|
+
// when the guide is completed via autostart, preventing the guide from autostarting again.
|
|
81
|
+
GuideDialogSteps.getModalDialog().should('not.exist');
|
|
82
|
+
});
|
|
83
|
+
});
|