graphdb-workbench-tests 2.5.1 → 2.6.0-RC2
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/fixtures/graphdb-import/resource-test-data.ttl +99 -0
- package/fixtures/graphql-editor/default-query-response.json +517 -0
- package/fixtures/guides/guides.json +764 -0
- package/fixtures/guides/movies.ttl +629 -0
- package/fixtures/guides/starwars.ttl +4384 -0
- package/fixtures/locale-en.json +53 -12
- package/fixtures/namespaces/ontotext-generated-namespace.json +22 -0
- package/fixtures/queries/empty-query-response.json +11 -0
- package/integration/cluster/cluster-management.spec.js +1 -2
- package/integration/explore/graphs.overview.spec.js +4 -2
- package/integration/explore/similariti-index-create.spec.js +333 -0
- package/integration/explore/similarity-index.spec.js +88 -0
- package/integration/explore/similarity.spec.js +180 -56
- package/integration/explore/visual-graph/graphs-config.spec.js +453 -0
- package/integration/explore/{visual.graph.spec.js → visual-graph/visual.graph.spec.js} +146 -347
- package/integration/guides/movies-interactive-guide.spec.js +73 -0
- package/integration/guides/star-wars-interactive-guide.js +60 -0
- package/integration/home/language-change.spec.js +3 -3
- package/integration/import/import.user.data.spec.js +2 -0
- package/integration/resource/resource.spec.js +357 -0
- package/integration/setup/aclmanagement/create-rule.spec.js +88 -11
- package/integration/setup/aclmanagement/delete-rule.spec.js +6 -4
- package/integration/setup/aclmanagement/edit-rule.spec.js +13 -8
- package/integration/setup/aclmanagement/render-rules.spec.js +4 -2
- package/integration/setup/aclmanagement/reorder-rules.spec.js +5 -3
- package/integration/setup/aclmanagement/revert-rules.spec.js +4 -3
- package/integration/setup/aclmanagement/scopes.spec.js +228 -0
- package/integration/setup/aclmanagement/update-rules.spec.js +17 -9
- package/integration/setup/jdbc-create.spec.js +330 -0
- package/integration/setup/jdbc.spec.js +78 -154
- package/integration/setup/my-settings.spec.js +9 -41
- package/integration/setup/sparql-template-create.js +150 -0
- package/integration/setup/sparql-templates.spec.js +82 -146
- package/integration/sparql-editor/actions/execute-query.spec.js +44 -0
- package/integration/sparql-editor/actions/expand-results-over-sameas.spec.js +136 -0
- package/integration/sparql-editor/actions/include-inferred-statements.spec.js +100 -0
- package/integration/sparql-editor/actions/inferred-sameas.spec.js +47 -0
- package/integration/sparql-editor/actions/save-query.spec.js +70 -0
- package/integration/sparql-editor/actions/show-saved-queries.spec.js +61 -0
- package/integration/sparql-editor/internationalization.spec.js +41 -0
- package/integration/sparql-editor/saved-query/abort-query.spec.js +51 -0
- package/integration/sparql-editor/saved-query/delete-query.spec.js +56 -0
- package/integration/sparql-editor/saved-query/edit-query.spec.js +68 -0
- package/integration/sparql-editor/saved-query/share-query.spec.js +78 -0
- package/integration/sparql-editor/sparql-editor.spec.js +55 -0
- package/integration/sparql-editor/yasgui-tabs.spec.js +107 -0
- package/integration/sparql-editor/yasr/download-as.spec.js +54 -0
- package/integration/sparql-editor/yasr/pagination.spec.js +234 -0
- package/integration/sparql-editor/yasr/table-plugin.spec.js +39 -0
- package/integration/sparql-editor/yasr/toolbar/visual-graph-button.spec.js +57 -0
- package/integration-flaky/explore/visual.graph.spec.js +3 -2
- package/integration-flaky/setup/sparql-template-create.js +139 -0
- package/integration-flaky/sparql-editor/actions/execute-update-query.spec.js +89 -0
- package/integration-flaky/sparql-editor/actions/share-query.spec.js +84 -0
- package/integration-flaky/sparql-editor/lucene-connector.spec.js +62 -0
- package/integration-flaky/sparql-editor/plugins/error-plugin.spec.js +83 -0
- package/integration-flaky/sparql-editor/yasr/table-plugin.spec.js +81 -0
- package/package.json +3 -1
- package/steps/application-steps.js +5 -0
- package/steps/autocomplete-steps.js +10 -0
- package/steps/error-steps.js +9 -0
- package/steps/explore/graphs-overview-steps.js +24 -0
- package/steps/explore/similarity-index-create-steps.js +113 -0
- package/steps/explore/similarity-indexes-steps.js +18 -0
- package/steps/guides/guide-dialog-steps.js +38 -0
- package/steps/guides/guide-steps.js +278 -0
- package/steps/guides/movies-guide-steps.js +241 -0
- package/steps/guides/star-wars-guide-steps.js +188 -0
- package/steps/import-steps.js +16 -0
- package/steps/language-selector-steps.js +22 -0
- package/steps/loader-steps.js +10 -0
- package/steps/lucene-connector-steps.js +43 -0
- package/steps/main-menu-steps.js +67 -0
- package/steps/repository-selector-steps.js +26 -0
- package/steps/repository-steps.js +4 -0
- package/steps/resource/resource-edit-steps.js +111 -0
- package/steps/resource/resource-steps.js +149 -0
- package/steps/setup/acl-management-steps.js +201 -39
- package/steps/setup/jdbc-create-steps.js +97 -0
- package/steps/setup/jdbc-steps.js +42 -0
- package/steps/setup/sparql-create-update-steps.js +55 -0
- package/steps/setup/sparql-templates-steps.js +38 -0
- package/steps/sparql-editor-steps.js +20 -0
- package/steps/sparql-steps.js +0 -6
- package/steps/visual-graph-steps.js +365 -6
- package/steps/yasgui/confirmation-dialog-steps.js +13 -0
- package/steps/yasgui/pagination-steps.js +47 -0
- package/steps/yasgui/plugin/error-plugin-steps.js +30 -0
- package/steps/yasgui/save-query-dialog.js +61 -0
- package/steps/yasgui/saved-queries-dialog.js +29 -0
- package/steps/yasgui/saved-query.js +25 -0
- package/steps/yasgui/share-saved-query-dialog.js +25 -0
- package/steps/yasgui/table-plugin-steps.js +29 -0
- package/steps/yasgui/yasgui-loader.js +10 -0
- package/steps/yasgui/yasgui-steps.js +191 -0
- package/steps/yasgui/yasqe-steps.js +187 -0
- package/steps/yasgui/yasr-steps.js +108 -0
- package/stubs/namespace-stubs.js +10 -0
- package/stubs/repositories-stub.js +58 -0
- package/stubs/security-stubs.js +69 -0
- package/stubs/yasgui/connectors-stubs.js +12 -0
- package/stubs/yasgui/query-stubs.js +253 -0
- package/support/index.js +3 -0
- package/support/repository-commands.js +5 -5
- package/support/sparql-commands.js +1 -1
- package/support/visual-graph-commands.js +25 -0
- package/integration/sparql/main.menu.spec.js +0 -232
- package/integration/sparql/sparql-error-handling.spec.js +0 -74
- package/integration/sparql/sparql-language-change.spec.js +0 -58
- package/integration/sparql/sparql-result-formating.spec.js +0 -84
- package/integration/sparql/sparql.menu.spec.js +0 -1253
- package/integration-flaky/setup/sparql-templates.spec.js +0 -125
- package/integration-flaky/sparql/sparql-language-change.spec.js +0 -45
- package/integration-flaky/sparql/sparql.menu.spec.js +0 -75
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import {GuideDialogSteps} from "./guide-dialog-steps";
|
|
2
|
+
import {MainMenuSteps} from "../main-menu-steps";
|
|
3
|
+
import {RepositorySteps} from "../repository-steps";
|
|
4
|
+
import {RepositorySelectorSteps} from "../repository-selector-steps";
|
|
5
|
+
import {AutocompleteSteps} from "../autocomplete-steps";
|
|
6
|
+
import ImportSteps from "../import-steps";
|
|
7
|
+
|
|
8
|
+
export class GuideSteps {
|
|
9
|
+
static visit() {
|
|
10
|
+
cy.visit('/guides');
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
static runGuide(guideName) {
|
|
14
|
+
cy.contains('td', guideName)
|
|
15
|
+
.parent()
|
|
16
|
+
.within($tr => {
|
|
17
|
+
cy.get('.btn').click();
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
static getElementByGuideSelector(selctor) {
|
|
22
|
+
return cy.get(`[guide-selector="${selctor}"]`);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
static assertIsElementInteractable(selector) {
|
|
26
|
+
cy.get(selector).should('be.visible');
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static uploadFile(fileName) {
|
|
30
|
+
cy.get('#ngf-wb-import-uploadFile')
|
|
31
|
+
.attachFile(`guides/${fileName}`);
|
|
32
|
+
// Wait until import button appeared.
|
|
33
|
+
cy.get(`[guide-selector="import-file-${fileName}"]`);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
static assertPageNotInteractive() {
|
|
37
|
+
cy.get('.shepherd-modal-is-visible');
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static assertWelcomePage(guideName) {
|
|
41
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible(`Welcome to ${guideName} — 2/2`);
|
|
42
|
+
GuideSteps.assertPageNotInteractive();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
static assertCreateRepositoryStep1() {
|
|
46
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Create repository — 1/7');
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
static assertCreateRepositoryStep2() {
|
|
50
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Create repository — 2/7');
|
|
51
|
+
GuideSteps.assertPageNotInteractive();
|
|
52
|
+
MainMenuSteps.getMenuSetup().should('be.visible');
|
|
53
|
+
MainMenuSteps.getMenuButton('Repositories').should('not.be.visible');
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
static assertCreateRepositoryStep3() {
|
|
57
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Create repository — 3/7');
|
|
58
|
+
GuideSteps.assertPageNotInteractive();
|
|
59
|
+
MainMenuSteps.getMenuButton('Repositories').should('be.visible');
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
static assertCreateRepositoryStep4() {
|
|
63
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Create repository — 4/7');
|
|
64
|
+
GuideSteps.assertPageNotInteractive();
|
|
65
|
+
RepositorySteps.getCreateRepositoryButton().should('be.visible');
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
static assertCreateRepositoryStep5() {
|
|
69
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Create repository — 5/7');
|
|
70
|
+
GuideSteps.assertPageNotInteractive();
|
|
71
|
+
RepositorySteps.getGDBRepositoryTypeButton().should('be.visible');
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
static assertCreateRepositoryStep6() {
|
|
75
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Create repository — 6/7');
|
|
76
|
+
GuideSteps.assertPageNotInteractive();
|
|
77
|
+
RepositorySteps.getRepositoryIdField().should('be.visible');
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
static assertCreateRepositoryStep7(repositoryId) {
|
|
81
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Create repository — 7/7');
|
|
82
|
+
GuideSteps.assertPageNotInteractive();
|
|
83
|
+
RepositorySteps.getRepositoryIdField().should('have.value', repositoryId);
|
|
84
|
+
RepositorySteps.getSaveRepositoryButton().should('be.visible');
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
static createRepositoryByNextButton(repositoryId) {
|
|
88
|
+
GuideSteps.assertCreateRepositoryStep1();
|
|
89
|
+
|
|
90
|
+
GuideDialogSteps.clickOnNextButton();
|
|
91
|
+
GuideSteps.assertCreateRepositoryStep2();
|
|
92
|
+
|
|
93
|
+
GuideDialogSteps.clickOnNextButton();
|
|
94
|
+
GuideSteps.assertCreateRepositoryStep3();
|
|
95
|
+
|
|
96
|
+
GuideDialogSteps.clickOnNextButton();
|
|
97
|
+
GuideSteps.assertCreateRepositoryStep4();
|
|
98
|
+
|
|
99
|
+
// Step click on button "GraphDB Repository".
|
|
100
|
+
GuideDialogSteps.clickOnNextButton();
|
|
101
|
+
GuideSteps.assertCreateRepositoryStep5();
|
|
102
|
+
|
|
103
|
+
// Step enter "Repository ID".
|
|
104
|
+
GuideDialogSteps.clickOnNextButton();
|
|
105
|
+
GuideSteps.assertCreateRepositoryStep6();
|
|
106
|
+
|
|
107
|
+
// Step select "Create" repository button.
|
|
108
|
+
GuideDialogSteps.clickOnNextButton();
|
|
109
|
+
GuideSteps.assertCreateRepositoryStep7(repositoryId);
|
|
110
|
+
|
|
111
|
+
GuideDialogSteps.clickOnNextButton();
|
|
112
|
+
GuideSteps.assertPageNotInteractive();
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
static assertSelectRepositoryStep1() {
|
|
116
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Connect to repository — 1/2');
|
|
117
|
+
RepositorySelectorSteps.getRepositorySelectorsButton().should('be.visible');
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
static assertSelectRepositoryStep2(repositoryId) {
|
|
121
|
+
GuideSteps.assertPageNotInteractive();
|
|
122
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Connect to repository — 2/2');
|
|
123
|
+
RepositorySelectorSteps.getRepositorySelectorButton(repositoryId).should('be.visible');
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
static selectRepositoryByNextButton(repositoryId) {
|
|
127
|
+
GuideSteps.assertSelectRepositoryStep1();
|
|
128
|
+
|
|
129
|
+
GuideDialogSteps.clickOnNextButton();
|
|
130
|
+
GuideSteps.assertSelectRepositoryStep2(repositoryId);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
static assertEnableAutocompleteStep1() {
|
|
134
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Enable autocomplete — 1/5');
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
static assertEnableAutocompleteStep2() {
|
|
138
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Enable autocomplete — 2/5');
|
|
139
|
+
GuideSteps.assertPageNotInteractive();
|
|
140
|
+
MainMenuSteps.getMenuSetup().should('be.visible');
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
static assertEnableAutocompleteStep3() {
|
|
144
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Enable autocomplete — 3/5');
|
|
145
|
+
GuideSteps.assertPageNotInteractive();
|
|
146
|
+
MainMenuSteps.getSubmenuAutocomplete().should('be.visible');
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
static assertEnableAutocompleteStep4() {
|
|
150
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Enable autocomplete — 4/5');
|
|
151
|
+
GuideSteps.assertPageNotInteractive();
|
|
152
|
+
AutocompleteSteps.getAutocompleteSwitch().should('be.visible');
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
static assertEnableAutocompleteStep5() {
|
|
156
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Enable autocomplete — 5/5');
|
|
157
|
+
GuideSteps.assertPageNotInteractive();
|
|
158
|
+
AutocompleteSteps.getSuccessStatusElement().should('be.visible');
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
static enableAutocompleteByNextButton() {
|
|
162
|
+
GuideSteps.assertEnableAutocompleteStep1();
|
|
163
|
+
|
|
164
|
+
// Step select menu setup.
|
|
165
|
+
GuideDialogSteps.clickOnNextButton();
|
|
166
|
+
GuideSteps.assertEnableAutocompleteStep2();
|
|
167
|
+
|
|
168
|
+
// Step select autocomplete.
|
|
169
|
+
GuideDialogSteps.clickOnNextButton();
|
|
170
|
+
GuideSteps.assertEnableAutocompleteStep3();
|
|
171
|
+
|
|
172
|
+
// Step enable autocomplete index.
|
|
173
|
+
GuideDialogSteps.clickOnNextButton();
|
|
174
|
+
GuideSteps.assertEnableAutocompleteStep4();
|
|
175
|
+
|
|
176
|
+
// Step wait autocomplete indexing complete
|
|
177
|
+
GuideDialogSteps.clickOnNextButton();
|
|
178
|
+
GuideSteps.assertEnableAutocompleteStep5();
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
static assertImportFileStep1() {
|
|
182
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Import file — 1/7');
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
static assertImportFileStep2() {
|
|
186
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Import file — 2/7');
|
|
187
|
+
GuideSteps.assertPageNotInteractive();
|
|
188
|
+
MainMenuSteps.getMenuImport().should('be.visible');
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
static assertImportFileStep3() {
|
|
192
|
+
GuideSteps.assertPageNotInteractive();
|
|
193
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Import file — 3/7');
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
static assertImportFileStep4() {
|
|
197
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Import file — 4/7');
|
|
198
|
+
GuideSteps.assertPageNotInteractive();
|
|
199
|
+
ImportSteps.getImportRdfFileElement().should('be.visible');
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
static assertImportFileStep5(fileToImport) {
|
|
203
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Import file — 5/7');
|
|
204
|
+
GuideSteps.assertIsElementInteractable('[guide-selector="import-file-' + fileToImport + '"]');
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
static assertImportFileStep6() {
|
|
208
|
+
GuideSteps.assertPageNotInteractive();
|
|
209
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Import file — 6/7');
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
static assertImportFileStep7(fileToImport) {
|
|
213
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Import file — 7/7');
|
|
214
|
+
GuideSteps.assertPageNotInteractive();
|
|
215
|
+
ImportSteps.getImportFileRow(fileToImport).contains('Imported successfully');
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
static importFileByNextButton(fileToImport) {
|
|
219
|
+
GuideSteps.assertImportFileStep1();
|
|
220
|
+
|
|
221
|
+
// Step select "Import" button.
|
|
222
|
+
GuideDialogSteps.clickOnNextButton();
|
|
223
|
+
GuideSteps.assertImportFileStep2();
|
|
224
|
+
|
|
225
|
+
// Step described download of file.
|
|
226
|
+
GuideDialogSteps.clickOnNextButton();
|
|
227
|
+
GuideSteps.assertImportFileStep3();
|
|
228
|
+
|
|
229
|
+
// Step click Upload RDF files button.
|
|
230
|
+
GuideDialogSteps.clickOnNextButton();
|
|
231
|
+
GuideSteps.assertImportFileStep4();
|
|
232
|
+
|
|
233
|
+
GuideSteps.uploadFile(fileToImport);
|
|
234
|
+
GuideSteps.assertImportFileStep5(fileToImport);
|
|
235
|
+
|
|
236
|
+
GuideDialogSteps.clickOnNextButton();
|
|
237
|
+
GuideSteps.assertImportFileStep6();
|
|
238
|
+
|
|
239
|
+
// Step click on Import button.
|
|
240
|
+
GuideDialogSteps.clickOnNextButton();
|
|
241
|
+
GuideSteps.assertImportFileStep7(fileToImport);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
static runGuideTest(guideName, repositoryId, fileToImport, stepAssertions = []) {
|
|
245
|
+
GuideSteps.runGuide(guideName);
|
|
246
|
+
GuideSteps.assertPageNotInteractive();
|
|
247
|
+
|
|
248
|
+
// Step Welcome to Star Wars guide
|
|
249
|
+
GuideDialogSteps.clickOnNextButton();
|
|
250
|
+
GuideSteps.assertWelcomePage(guideName);
|
|
251
|
+
|
|
252
|
+
GuideDialogSteps.clickOnNextButton();
|
|
253
|
+
GuideSteps.assertPageNotInteractive();
|
|
254
|
+
GuideSteps.createRepositoryByNextButton(repositoryId);
|
|
255
|
+
|
|
256
|
+
// Step select "Choose repository" button.
|
|
257
|
+
GuideSteps.selectRepositoryByNextButton(repositoryId);
|
|
258
|
+
|
|
259
|
+
// Step described autocomplete.
|
|
260
|
+
GuideDialogSteps.clickOnNextButton();
|
|
261
|
+
GuideSteps.assertPageNotInteractive();
|
|
262
|
+
GuideSteps.enableAutocompleteByNextButton();
|
|
263
|
+
|
|
264
|
+
// Step import file intro
|
|
265
|
+
GuideDialogSteps.clickOnNextButton();
|
|
266
|
+
GuideSteps.assertPageNotInteractive();
|
|
267
|
+
GuideSteps.importFileByNextButton(fileToImport);
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
GuideDialogSteps.clickOnNextButton();
|
|
271
|
+
stepAssertions.forEach((stepAssert) => {
|
|
272
|
+
stepAssert.assert();
|
|
273
|
+
GuideDialogSteps.clickOnNextButton(stepAssert.forceButtonClick);
|
|
274
|
+
});
|
|
275
|
+
|
|
276
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('End of guide');
|
|
277
|
+
}
|
|
278
|
+
}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import {GuideSteps} from "./guide-steps";
|
|
2
|
+
import {GuideDialogSteps} from "./guide-dialog-steps";
|
|
3
|
+
import {MainMenuSteps} from "../main-menu-steps";
|
|
4
|
+
import {VisualGraphSteps} from "../visual-graph-steps";
|
|
5
|
+
import {YasrSteps} from "../yasgui/yasr-steps";
|
|
6
|
+
import {YasqeSteps} from "../yasgui/yasqe-steps";
|
|
7
|
+
import {ResourceSteps} from "../resource/resource-steps";
|
|
8
|
+
|
|
9
|
+
export class MoviesGuideSteps {
|
|
10
|
+
|
|
11
|
+
static assertExploreClassHierarchyStep1() {
|
|
12
|
+
GuideSteps.assertPageNotInteractive();
|
|
13
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore the class hierarchy — 1/7');
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
static assertExploreClassHierarchyStep2() {
|
|
17
|
+
GuideSteps.assertPageNotInteractive();
|
|
18
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore the class hierarchy — 2/7');
|
|
19
|
+
MainMenuSteps.getMenuExplore().should('be.visible');
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
static assertExploreClassHierarchyStep3() {
|
|
23
|
+
GuideSteps.assertPageNotInteractive();
|
|
24
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore the class hierarchy — 3/7');
|
|
25
|
+
MainMenuSteps.getSubmenuClassHierarchy().should('be.visible');
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
static assertExploreClassHierarchyStep4() {
|
|
29
|
+
GuideSteps.assertPageNotInteractive();
|
|
30
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore the class hierarchy — 4/7');
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
static assertExploreClassHierarchyStep5() {
|
|
34
|
+
GuideSteps.assertPageNotInteractive();
|
|
35
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore the class hierarchy — 5/7');
|
|
36
|
+
VisualGraphSteps.getMainGroupElement().should('be.visible');
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
static assertExploreClassHierarchyStep6() {
|
|
40
|
+
GuideSteps.assertPageNotInteractive();
|
|
41
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore the class hierarchy — 6/7');
|
|
42
|
+
GuideSteps.getElementByGuideSelector('class-schema:Movie').should('be.visible');
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
static assertExploreClassHierarchyStep7() {
|
|
46
|
+
GuideSteps.assertPageNotInteractive();
|
|
47
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore the class hierarchy — 7/7');
|
|
48
|
+
GuideSteps.getElementByGuideSelector('class-schema:Movie').should('be.visible');
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
static assertClassHierarchyInstancesStep1() {
|
|
52
|
+
GuideSteps.assertPageNotInteractive();
|
|
53
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Class hierarchy instances — 1/8');
|
|
54
|
+
GuideSteps.getElementByGuideSelector('class-imdb:ColorMovie').should('be.visible');
|
|
55
|
+
GuideSteps.assertIsElementInteractable('[guide-selector="class-imdb:ColorMovie"]');
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
static assertClassHierarchyInstancesStep2() {
|
|
59
|
+
GuideSteps.assertPageNotInteractive();
|
|
60
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Class hierarchy instances — 2/8');
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
static assertClassHierarchyInstancesStep3() {
|
|
64
|
+
GuideSteps.assertPageNotInteractive();
|
|
65
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Class hierarchy instances — 3/8');
|
|
66
|
+
GuideSteps.getElementByGuideSelector('instance-imdb:title/Superman').should('be.visible');
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
static assertClassHierarchyInstancesStep4() {
|
|
70
|
+
GuideSteps.assertPageNotInteractive();
|
|
71
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Class hierarchy instances — 4/8');
|
|
72
|
+
GuideSteps.getElementByGuideSelector('instance-imdb:title/Mulan').should('be.visible');
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
static assertClassHierarchyInstancesStep5() {
|
|
76
|
+
GuideSteps.assertPageNotInteractive();
|
|
77
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Class hierarchy instances — 5/8');
|
|
78
|
+
GuideSteps.getElementByGuideSelector('instances-count').should('be.visible');
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
static assertClassHierarchyInstancesStep6() {
|
|
82
|
+
GuideSteps.assertPageNotInteractive();
|
|
83
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Class hierarchy instances — 6/8');
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
static assertClassHierarchyInstancesStep7() {
|
|
87
|
+
GuideSteps.assertPageNotInteractive();
|
|
88
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Class hierarchy instances — 7/8');
|
|
89
|
+
YasrSteps.getYasr().should('be.visible');
|
|
90
|
+
YasrSteps.getResults().should('have.length', 61);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
static assertClassHierarchyInstancesStep8() {
|
|
94
|
+
GuideSteps.assertPageNotInteractive();
|
|
95
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Class hierarchy instances — 8/8');
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
static assertExecuteSparqlQueryStep1() {
|
|
99
|
+
GuideSteps.assertPageNotInteractive();
|
|
100
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Execute SPARQL query — 1/8');
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
static assertExecuteSparqlQueryStep2() {
|
|
104
|
+
GuideSteps.assertPageNotInteractive();
|
|
105
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Execute SPARQL query — 2/8');
|
|
106
|
+
MainMenuSteps.getMenuSparql().should('be.visible');
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
static assertExecuteSparqlQueryStep3() {
|
|
110
|
+
GuideSteps.assertPageNotInteractive();
|
|
111
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Execute SPARQL query — 3/8');
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
static assertExecuteSparqlQueryStep4() {
|
|
115
|
+
GuideSteps.assertPageNotInteractive();
|
|
116
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Execute SPARQL query — 4/8');
|
|
117
|
+
YasqeSteps.getExecuteQueryButton().should('be.visible');
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
static assertExecuteSparqlQueryStep5() {
|
|
121
|
+
GuideSteps.assertPageNotInteractive();
|
|
122
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Execute SPARQL query — 5/8');
|
|
123
|
+
YasrSteps.getYasr().should('be.visible');
|
|
124
|
+
YasrSteps.getResults().should('have.length', 13);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
static assertExecuteSparqlQueryStep6() {
|
|
128
|
+
GuideSteps.assertPageNotInteractive();
|
|
129
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Execute SPARQL query — 6/8');
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
static assertExecuteSparqlQueryStep7() {
|
|
133
|
+
GuideSteps.assertPageNotInteractive();
|
|
134
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Execute SPARQL query — 7/8');
|
|
135
|
+
YasqeSteps.getExecuteQueryButton().should('be.visible');
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
static assertExecuteSparqlQueryStep8() {
|
|
139
|
+
GuideSteps.assertPageNotInteractive();
|
|
140
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Execute SPARQL query — 8/8');
|
|
141
|
+
YasrSteps.getYasr().should('be.visible');
|
|
142
|
+
YasrSteps.getResults().should('have.length', 61);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
static assertExploreRDFStep1() {
|
|
146
|
+
GuideSteps.assertPageNotInteractive();
|
|
147
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 1/10');
|
|
148
|
+
YasrSteps.getResultRow(3).should('be.visible');
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
static assertExploreRDFStep2() {
|
|
152
|
+
GuideSteps.assertPageNotInteractive();
|
|
153
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 2/10');
|
|
154
|
+
YasrSteps.getResults().should('be.visible');
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
static assertExploreRDFStep3() {
|
|
158
|
+
GuideSteps.assertPageNotInteractive();
|
|
159
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 3/10');
|
|
160
|
+
YasrSteps.getResultRow(0).should('be.visible');
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
static assertExploreRDFStep4() {
|
|
164
|
+
GuideSteps.assertPageNotInteractive();
|
|
165
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 4/10');
|
|
166
|
+
YasrSteps.getResults().should('be.visible');
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
static assertExploreRDFStep5() {
|
|
170
|
+
GuideSteps.assertPageNotInteractive();
|
|
171
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 5/10');
|
|
172
|
+
ResourceSteps.getAllRoleTab().should('be.visible');
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
static assertExploreRDFStep6() {
|
|
176
|
+
GuideSteps.assertPageNotInteractive();
|
|
177
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 6/10');
|
|
178
|
+
YasrSteps.getResults().should('be.visible');
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
static assertExploreRDFStep7() {
|
|
182
|
+
GuideSteps.assertPageNotInteractive();
|
|
183
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 7/10');
|
|
184
|
+
ResourceSteps.getVisualGraphButton().should('be.visible');
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
static assertExploreRDFStep8() {
|
|
188
|
+
GuideSteps.assertPageNotInteractive();
|
|
189
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 8/10');
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
static assertExploreRDFStep9() {
|
|
193
|
+
GuideSteps.assertPageNotInteractive();
|
|
194
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 9/10');
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
static assertExploreRDFStep10() {
|
|
198
|
+
GuideSteps.assertPageNotInteractive();
|
|
199
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Explore RDF as a table — 10/10');
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
static assertSparqlQueryStep1() {
|
|
203
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Execute SPARQL query — 1/7');
|
|
204
|
+
MainMenuSteps.getMenuSparql().should('be.visible');
|
|
205
|
+
GuideSteps.assertPageNotInteractive();
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
static assertSparqlQueryStep2() {
|
|
209
|
+
GuideSteps.assertPageNotInteractive();
|
|
210
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Execute SPARQL query — 2/7');
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
static assertSparqlQueryStep3() {
|
|
214
|
+
GuideSteps.assertPageNotInteractive();
|
|
215
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Execute SPARQL query — 3/7');
|
|
216
|
+
YasqeSteps.getExecuteQueryButton().should('be.visible');
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
static assertSparqlQueryStep4() {
|
|
220
|
+
GuideSteps.assertPageNotInteractive();
|
|
221
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Execute SPARQL query — 4/7');
|
|
222
|
+
YasrSteps.getResults().should('be.visible');
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
static assertSparqlQueryStep5() {
|
|
226
|
+
GuideSteps.assertPageNotInteractive();
|
|
227
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Execute SPARQL query — 5/7');
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
static assertSparqlQueryStep6() {
|
|
231
|
+
GuideSteps.assertPageNotInteractive();
|
|
232
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Execute SPARQL query — 6/7');
|
|
233
|
+
YasqeSteps.getExecuteQueryButton().should('be.visible');
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
static assertSparqlQueryStep7() {
|
|
237
|
+
GuideSteps.assertPageNotInteractive();
|
|
238
|
+
GuideDialogSteps.assertDialogWithTitleIsVisible('Execute SPARQL query — 7/7');
|
|
239
|
+
YasrSteps.getResults().should('be.visible');
|
|
240
|
+
}
|
|
241
|
+
}
|