graphdb-workbench-tests 3.3.3-TR1 → 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.
- 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.spec.js +2 -7
- 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 +388 -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/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 +317 -263
- 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-steps.js +13 -1
- package/steps/visual-graph-steps.js +72 -2
- package/steps/yasgui/yasqe-steps.js +29 -4
- package/steps/yasgui/yasr-steps.js +4 -0
- package/stubs/guides/guides-stubs.js +41 -1
|
@@ -0,0 +1,167 @@
|
|
|
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 {YasrSteps} from "../../../steps/yasgui/yasr-steps.js";
|
|
5
|
+
import {ResourceSteps} from "../../../steps/resource/resource-steps.js";
|
|
6
|
+
|
|
7
|
+
describe('Table Graph explore', () => {
|
|
8
|
+
const FILE_TO_IMPORT = 'wine.rdf';
|
|
9
|
+
let repositoryId;
|
|
10
|
+
|
|
11
|
+
beforeEach(() => {
|
|
12
|
+
repositoryId = 'table-graph-explore-guide-step-' + Date.now();
|
|
13
|
+
cy.createRepository({id: repositoryId});
|
|
14
|
+
cy.presetRepository(repositoryId);
|
|
15
|
+
cy.importServerFile(repositoryId, FILE_TO_IMPORT);
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
afterEach(() => {
|
|
19
|
+
cy.deleteRepository(repositoryId);
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
describe('Table Graph explore without substeps', () => {
|
|
23
|
+
beforeEach(() => {
|
|
24
|
+
GuidesStubs.stubTableGraphExploreWithoutSubstepsGuide();
|
|
25
|
+
|
|
26
|
+
GuideSteps.visit();
|
|
27
|
+
GuideSteps.verifyGuidesListExists();
|
|
28
|
+
cy.wait('@getGuides');
|
|
29
|
+
GuideSteps.runFirstGuide();
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
it('Should explore visual graph (User interaction)', () => {
|
|
33
|
+
// GIVEN: A guide is started, and there are results in the SPARQL editor.
|
|
34
|
+
GuideDialogSteps.clickOnNextButton();
|
|
35
|
+
|
|
36
|
+
// WHEN: I click on a resource link in the results table.
|
|
37
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 1/2');
|
|
38
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The following steps show how to explore RDF data in tabular form without writing SPARQL queries. Click on the wine#madeFromGrape IRI to explore it.');
|
|
39
|
+
YasrSteps.clickOnResource(48, 1);
|
|
40
|
+
|
|
41
|
+
// THEN: I expect to see a dialog in the resource view.
|
|
42
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 2/2');
|
|
43
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The table shows RDF statements where the subject is the selected IRI, wine#madeFromGrape. The view can be configured to show statements where the IRI is the subject, predicate, object, context or in any position.');
|
|
44
|
+
GuideDialogSteps.clickOnNextButton();
|
|
45
|
+
|
|
46
|
+
// AND: The guide should end.
|
|
47
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('End of guide');
|
|
48
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('This guide has ended.');
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
it('Should explore visual graph (Next flow)', () => {
|
|
52
|
+
// GIVEN: A guide is started, and there are results in the SPARQL editor.
|
|
53
|
+
GuideDialogSteps.clickOnNextButton();
|
|
54
|
+
|
|
55
|
+
// WHEN: I proceed using the Next button.
|
|
56
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 1/2');
|
|
57
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The following steps show how to explore RDF data in tabular form without writing SPARQL queries. Click on the wine#madeFromGrape IRI to explore it.');
|
|
58
|
+
GuideDialogSteps.clickOnNextButton();
|
|
59
|
+
|
|
60
|
+
// THEN: I expect to see a dialog in the resource view.
|
|
61
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 2/2');
|
|
62
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The table shows RDF statements where the subject is the selected IRI, wine#madeFromGrape. The view can be configured to show statements where the IRI is the subject, predicate, object, context or in any position.');
|
|
63
|
+
GuideDialogSteps.clickOnNextButton();
|
|
64
|
+
|
|
65
|
+
// AND: The guide should end.
|
|
66
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('End of guide');
|
|
67
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('This guide has ended');
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
describe('Table Graph explore', () => {
|
|
72
|
+
beforeEach(() => {
|
|
73
|
+
GuidesStubs.stubTableGraphExploreGuide();
|
|
74
|
+
|
|
75
|
+
GuideSteps.visit();
|
|
76
|
+
GuideSteps.verifyGuidesListExists();
|
|
77
|
+
cy.wait('@getGuides');
|
|
78
|
+
GuideSteps.runFirstGuide();
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
it('Should explore visual graph (User interaction)', () => {
|
|
82
|
+
// GIVEN: A guide is started, and there are results in the SPARQL editor.
|
|
83
|
+
GuideDialogSteps.clickOnNextButton();
|
|
84
|
+
|
|
85
|
+
// WHEN: I click on the resource link highlighted in the guide dialog.
|
|
86
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 1/8');
|
|
87
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The following steps show how to explore RDF data in tabular form without writing SPARQL queries. Click on the wine#madeFromGrape IRI to explore it.');
|
|
88
|
+
YasrSteps.clickOnResource(48, 1);
|
|
89
|
+
|
|
90
|
+
// THEN: I expect to see a dialog in the resource view.
|
|
91
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 2/8');
|
|
92
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The table shows RDF statements where the subject is the selected IRI, wine#madeFromGrape. The view can be configured to show statements where the IRI is the subject, predicate, object, context or in any position.');
|
|
93
|
+
GuideDialogSteps.clickOnNextButton();
|
|
94
|
+
|
|
95
|
+
// AND: The guide continues with substeps.
|
|
96
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 3/8');
|
|
97
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('You can click on any IRI in the table to navigate to it. Click on vin:WineGrape.');
|
|
98
|
+
YasrSteps.clickOnResource(2, 3);
|
|
99
|
+
|
|
100
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 4/8');
|
|
101
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The table provides an easy way to view triples in which a given IRI is the subject, predicate, or object.');
|
|
102
|
+
GuideDialogSteps.clickOnNextButton();
|
|
103
|
+
|
|
104
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 5/8');
|
|
105
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('You can configure the view to show RDF statements where the current IRI is the subject, predicate, object, context or in any position. Click on the all tab.This is an extra content');
|
|
106
|
+
ResourceSteps.selectRole('all');
|
|
107
|
+
|
|
108
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 6/8');
|
|
109
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('You can always explore the same data using the Visual graph view. Click on the Visual graph button to try it now.');
|
|
110
|
+
ResourceSteps.clickOnVisualGraphButton();
|
|
111
|
+
|
|
112
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 7/8');
|
|
113
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The graph shows connections between the start node, vin:WineGrape, and other nodes. Each arrow represents one or more connections (RDF statements).');
|
|
114
|
+
GuideDialogSteps.clickOnNextButton();
|
|
115
|
+
|
|
116
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 8/8');
|
|
117
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('You can click on any IRI in the table to navigate to it. Click on wine#madeFromGrape.');
|
|
118
|
+
GuideDialogSteps.clickOnNextButton();
|
|
119
|
+
|
|
120
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('End of guide');
|
|
121
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('This guide has ended.');
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
it('Should explore visual graph (Next flow)', () => {
|
|
125
|
+
// GIVEN: A guide is started, and there are results in the SPARQL editor.
|
|
126
|
+
GuideDialogSteps.clickOnNextButton();
|
|
127
|
+
|
|
128
|
+
// WHEN: I proceed using the Next button.
|
|
129
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 1/8');
|
|
130
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The following steps show how to explore RDF data in tabular form without writing SPARQL queries. Click on the wine#madeFromGrape IRI to explore it.');
|
|
131
|
+
GuideDialogSteps.clickOnNextButton();
|
|
132
|
+
|
|
133
|
+
// THEN: I expect to see a dialog in the resource view.
|
|
134
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 2/8');
|
|
135
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The table shows RDF statements where the subject is the selected IRI, wine#madeFromGrape. The view can be configured to show statements where the IRI is the subject, predicate, object, context or in any position.');
|
|
136
|
+
GuideDialogSteps.clickOnNextButton();
|
|
137
|
+
|
|
138
|
+
// AND: The guide continues with substeps.
|
|
139
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 3/8');
|
|
140
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('You can click on any IRI in the table to navigate to it. Click on vin:WineGrape.');
|
|
141
|
+
YasrSteps.clickOnResource(2, 3);
|
|
142
|
+
|
|
143
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 4/8');
|
|
144
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The table provides an easy way to view triples in which a given IRI is the subject, predicate, or object.');
|
|
145
|
+
GuideDialogSteps.clickOnNextButton();
|
|
146
|
+
|
|
147
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 5/8');
|
|
148
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('You can configure the view to show RDF statements where the current IRI is the subject, predicate, object, context or in any position. Click on the all tab.This is an extra content');
|
|
149
|
+
GuideDialogSteps.clickOnNextButton();
|
|
150
|
+
|
|
151
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 6/8');
|
|
152
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('You can always explore the same data using the Visual graph view. Click on the Visual graph button to try it now.');
|
|
153
|
+
GuideDialogSteps.clickOnNextButton();
|
|
154
|
+
|
|
155
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 7/8');
|
|
156
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('The graph shows connections between the start node, vin:WineGrape, and other nodes. Each arrow represents one or more connections (RDF statements).');
|
|
157
|
+
GuideDialogSteps.clickOnNextButton();
|
|
158
|
+
|
|
159
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 8/8');
|
|
160
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('You can click on any IRI in the table to navigate to it. Click on wine#madeFromGrape.');
|
|
161
|
+
GuideDialogSteps.clickOnNextButton();
|
|
162
|
+
|
|
163
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('End of guide');
|
|
164
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('This guide has ended.');
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
});
|
|
@@ -14,6 +14,8 @@ describe('Edit TTYG agent guide', () => {
|
|
|
14
14
|
beforeEach(() => {
|
|
15
15
|
RepositoriesStubs.stubRepositories(0, '/repositories/get-ttyg-repositories.json');
|
|
16
16
|
RepositoriesStubs.stubBaseEndpoints(repositoryId);
|
|
17
|
+
cy.presetRepository(repositoryId);
|
|
18
|
+
|
|
17
19
|
GuidesStubs.stubTTYGEditAgentGuide();
|
|
18
20
|
|
|
19
21
|
GuideSteps.visit();
|
|
@@ -25,7 +27,6 @@ describe('Edit TTYG agent guide', () => {
|
|
|
25
27
|
|
|
26
28
|
it('should end guide when no api key is present', () => {
|
|
27
29
|
TTYGStubs.stubAgentListGetError('Set the config property \'graphdb.llm.api-key\' to your LLM API key');
|
|
28
|
-
cy.presetRepository(repositoryId);
|
|
29
30
|
|
|
30
31
|
GuideDialogSteps.assertDialogWithTitleIsVisible('Edit an agent — 1/18');
|
|
31
32
|
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Lab menu.');
|
|
@@ -41,7 +42,6 @@ describe('Edit TTYG agent guide', () => {
|
|
|
41
42
|
});
|
|
42
43
|
|
|
43
44
|
it('should edit TTYG agent', () => {
|
|
44
|
-
cy.presetRepository(repositoryId);
|
|
45
45
|
TTYGStubs.stubAgentListGet();
|
|
46
46
|
TTYGStubs.stubAgentDefaultsGet();
|
|
47
47
|
TTYGStubs.stubChatGet();
|
|
@@ -0,0 +1,388 @@
|
|
|
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/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();
|
|
304
|
+
|
|
305
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 5/24');
|
|
306
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Enter a description: my description');
|
|
307
|
+
GuideDialogSteps.clickOnNextButton();
|
|
308
|
+
|
|
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();
|
|
312
|
+
|
|
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();
|
|
316
|
+
|
|
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();
|
|
320
|
+
|
|
321
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 10/24');
|
|
322
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Enter the following text: MerlotGrape');
|
|
323
|
+
GuideDialogSteps.clickOnNextButton();
|
|
324
|
+
|
|
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();
|
|
328
|
+
|
|
329
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 12/24');
|
|
330
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Graph expansion tab');
|
|
331
|
+
GuideDialogSteps.clickOnNextButton();
|
|
332
|
+
|
|
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();
|
|
337
|
+
|
|
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();
|
|
341
|
+
|
|
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();
|
|
345
|
+
|
|
346
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 16/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();
|
|
349
|
+
|
|
350
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 17/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();
|
|
353
|
+
|
|
354
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 18/24');
|
|
355
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click to save the visual graph configuration.');
|
|
356
|
+
GuideDialogSteps.clickOnNextButton();
|
|
357
|
+
|
|
358
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 19/24');
|
|
359
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click the visual graph you just created to open and explore it.');
|
|
360
|
+
VisualGraphSteps.selectConfig('visual');
|
|
361
|
+
|
|
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();
|
|
372
|
+
|
|
373
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 22/24');
|
|
374
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click to save the graph settings.');
|
|
375
|
+
GuideDialogSteps.clickOnNextButton();
|
|
376
|
+
|
|
377
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 23/24');
|
|
378
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Double click on WineGrape to expand the graph.');
|
|
379
|
+
GuideDialogSteps.clickOnNextButton();
|
|
380
|
+
|
|
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();
|
|
384
|
+
|
|
385
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('End of guide');
|
|
386
|
+
});
|
|
387
|
+
});
|
|
388
|
+
});
|
|
@@ -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
|
+
});
|