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.
- package/e2e-legacy/guides/navigation/navigation-guide.spec.js +64 -0
- package/e2e-legacy/guides/ttyg/edit-agent/edit-ttyg-agent-guide.spec.js +1 -0
- package/e2e-legacy/guides/visual-graph/visual-graph-guide.spec.js +344 -122
- package/e2e-legacy/help/guides/guides-autostart.spec.js +36 -3
- package/e2e-legacy/help/guides/guides-confirm-cancel-dialog.js +83 -0
- package/e2e-legacy/home/cookie-policy/cookie-policy.spec.js +182 -0
- package/e2e-legacy/ttyg/chat-panel.spec.js +9 -0
- package/e2e-legacy/ttyg/clone-agent.spec.js +22 -0
- package/e2e-legacy/ttyg/edit-agent.spec.js +17 -0
- package/e2e-security/setup/home/cookie-policy.spec.js +232 -6
- package/e2e-security/setup/users-and-access/turn-on-security-and-password-change.spec.js +72 -59
- package/fixtures/guides/confirm-cancel-dialog/confirm-cancel-dialog-guide.json +15 -0
- package/fixtures/guides/navigation/navigation-guide.json +60 -0
- package/fixtures/guides/visual-graph/visual-graph-config-guide.json +39 -0
- package/fixtures/ttyg/chats/explain-response-1.json +2 -48
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/steps/cookie-policy/cookie-consent-banner-steps.js +21 -0
- package/steps/cookie-policy/cookie-policy-modal.steps.js +56 -0
- package/steps/guides/guide-dialog-steps.js +56 -2
- package/steps/header-steps.js +13 -0
- package/steps/home-steps.js +0 -20
- package/steps/login-steps.js +1 -0
- package/steps/main-menu-steps.js +1 -0
- package/steps/setup/settings-steps.js +1 -1
- package/steps/shared-modal-dialog-steps.js +45 -0
- package/steps/visual-graph-steps.js +57 -3
- package/stubs/guides/guides-stubs.js +8 -0
- package/stubs/repositories/repositories-stubs.js +22 -0
- package/stubs/security-stubs.js +4 -0
- package/stubs/sparql-stubs.js +10 -0
- package/support/e2e-security.js +1 -1
- package/support/settings-commands.js +18 -2
- 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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
|
|
91
|
-
|
|
92
|
-
|
|
305
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 5/24');
|
|
306
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Enter a description: my description');
|
|
307
|
+
GuideDialogSteps.clickOnNextButton();
|
|
93
308
|
|
|
94
|
-
|
|
95
|
-
|
|
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
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
-
|
|
108
|
-
|
|
109
|
-
|
|
321
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 10/24');
|
|
322
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Enter the following text: MerlotGrape');
|
|
323
|
+
GuideDialogSteps.clickOnNextButton();
|
|
110
324
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
-
|
|
116
|
-
|
|
117
|
-
|
|
329
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 12/24');
|
|
330
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click on the Graph expansion tab');
|
|
331
|
+
GuideDialogSteps.clickOnNextButton();
|
|
118
332
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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();
|
|
134
349
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
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();
|
|
138
353
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
354
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 18/24');
|
|
355
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click to save the visual graph configuration.');
|
|
356
|
+
GuideDialogSteps.clickOnNextButton();
|
|
142
357
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
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');
|
|
146
361
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
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
|
-
|
|
152
|
-
|
|
153
|
-
|
|
373
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Visual graph explore — 22/24');
|
|
374
|
+
GuideDialogSteps.assertDialogWithContentIsVisible('Click to save the graph settings.');
|
|
375
|
+
GuideDialogSteps.clickOnNextButton();
|
|
154
376
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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
|
-
|
|
160
|
-
|
|
161
|
-
|
|
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
|
-
|
|
164
|
-
|
|
385
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('End of guide');
|
|
386
|
+
});
|
|
165
387
|
});
|
|
166
388
|
});
|