graphdb-workbench-tests 2.5.1 → 2.6.0-RC1
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 +44 -10
- 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 +220 -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 +193 -35
- 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
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import SparqlSteps from '../../steps/sparql-steps';
|
|
2
|
-
|
|
3
|
-
describe('YASQE and YASR language change validation', () => {
|
|
4
|
-
let repositoryId;
|
|
5
|
-
|
|
6
|
-
beforeEach(() => {
|
|
7
|
-
repositoryId = 'sparql-' + Date.now();
|
|
8
|
-
SparqlSteps.createRepoAndVisit(repositoryId);
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
afterEach(() => {
|
|
12
|
-
// Change the language back to English
|
|
13
|
-
SparqlSteps.changeLanguage('en');
|
|
14
|
-
|
|
15
|
-
cy.deleteRepository(repositoryId);
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
context('Default language should be active and language change should affect labels', () => {
|
|
19
|
-
it('should change labels in SPARQL view', () => {
|
|
20
|
-
|
|
21
|
-
// Check some labels are in default language
|
|
22
|
-
SparqlSteps.getSparqlQueryUpdateLabel().should('contain', 'SPARQL Query & Update');
|
|
23
|
-
SparqlSteps.getDownloadBtn().should('contain', 'Download as');
|
|
24
|
-
SparqlSteps.getEditorAndResultsBtn().should('contain', 'Editor and results');
|
|
25
|
-
SparqlSteps.getResultsOnlyBtn().should('contain', 'Results only');
|
|
26
|
-
|
|
27
|
-
SparqlSteps.changeLanguage('fr');
|
|
28
|
-
|
|
29
|
-
// The text in the labels should change
|
|
30
|
-
SparqlSteps.getSparqlQueryUpdateLabel().should('contain', 'Requête et mise à jour SPARQL');
|
|
31
|
-
SparqlSteps.getDownloadBtn().should('contain', 'Téléchargement');
|
|
32
|
-
SparqlSteps.getEditorAndResultsBtn().should('contain', 'Éditeur et résultats');
|
|
33
|
-
SparqlSteps.getResultsOnlyBtn().should('contain', 'Résultats seulement');
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
it('should change "Download as" dropdown label. Test "GDB-8100" bug.', () => {
|
|
37
|
-
|
|
38
|
-
// When I visit a page with YASQE and YASR in it,
|
|
39
|
-
// and execute a query.
|
|
40
|
-
SparqlSteps.executeQuery();
|
|
41
|
-
|
|
42
|
-
// Then I expect 'Download as' to be translated to English.
|
|
43
|
-
SparqlSteps.getDownloadBtn().should('contain', 'Download as');
|
|
44
|
-
|
|
45
|
-
// When I change the language.
|
|
46
|
-
SparqlSteps.changeLanguage('fr');
|
|
47
|
-
|
|
48
|
-
// Then I expect 'Download as' to be translated to French.
|
|
49
|
-
SparqlSteps.getDownloadBtn().should('contain', 'Téléchargement');
|
|
50
|
-
|
|
51
|
-
// When I rerun the query.
|
|
52
|
-
SparqlSteps.executeQuery();
|
|
53
|
-
|
|
54
|
-
// Then I expect 'Download as' to be translated to French.
|
|
55
|
-
SparqlSteps.getDownloadBtn().should('contain', 'Téléchargement');
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
});
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import SparqlSteps from "../../steps/sparql-steps";
|
|
2
|
-
import {QueryStubs} from "../../stubs/query-stubs";
|
|
3
|
-
|
|
4
|
-
describe('Formatting of SPARQL result bindings.', () => {
|
|
5
|
-
let repositoryId;
|
|
6
|
-
|
|
7
|
-
beforeEach(() => {
|
|
8
|
-
repositoryId = 'sparql-' + Date.now();
|
|
9
|
-
SparqlSteps.createRepoAndVisit(repositoryId);
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
afterEach(() => {
|
|
13
|
-
cy.deleteRepository(repositoryId);
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
it('should format result cell properly if result binding is IRI', () => {
|
|
17
|
-
// When I execute a query that returns IRI result.
|
|
18
|
-
SparqlSteps.typeQuery('select * where { values (?x ) { (<http://example.com/foobarbaz/meow/123>) }}');
|
|
19
|
-
SparqlSteps.executeQuery();
|
|
20
|
-
|
|
21
|
-
// Then I expect "/" character and "://" sequence to be followed by <wbr> tag.
|
|
22
|
-
SparqlSteps.getResultCellLink(0, 1).then(function($el) {
|
|
23
|
-
expect($el.html()).to.eq('http://<wbr>example.com/<wbr>foobarbaz/<wbr>meow/<wbr>123');
|
|
24
|
-
});
|
|
25
|
-
// and break-word is applied,
|
|
26
|
-
SparqlSteps.getResultCellLink(0, 1).should('have.css', 'word-wrap', 'break-word');
|
|
27
|
-
SparqlSteps.getResultUriCell(0, 1).should('have.attr', 'lang', 'xx');
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
it('should format properly result cell if result binding is literal and has language tag', () => {
|
|
31
|
-
// When I execute a query that returns literal result.
|
|
32
|
-
SparqlSteps.typeQuery('select * where { values (?x ) { ("some text "@en-GB) }}');
|
|
33
|
-
SparqlSteps.executeQuery();
|
|
34
|
-
|
|
35
|
-
SparqlSteps.getResultNoUriCell(0, 1).then(function($el) {
|
|
36
|
-
expect($el.html()).to.eq('"some text "<sup>@en-GB</sup>');
|
|
37
|
-
});
|
|
38
|
-
// Then I expect break-word is applied,
|
|
39
|
-
SparqlSteps.getResultNoUriCell(0, 1).should('have.css', 'word-wrap', 'break-word');
|
|
40
|
-
// language attribute is applied.
|
|
41
|
-
SparqlSteps.getResultLiteralCell(0, 1).should('have.attr', 'lang', 'en-GB');
|
|
42
|
-
SparqlSteps.getResultLiteralCell(0, 1).should('have.css', 'hyphens', 'auto');
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
it('should format properly result cell if result binding is literal and has not language tag', () => {
|
|
46
|
-
// When I execute a query that returns literal result.
|
|
47
|
-
SparqlSteps.typeQuery('select * where { values (?x ) { ("some text ") }}');
|
|
48
|
-
SparqlSteps.executeQuery();
|
|
49
|
-
|
|
50
|
-
// Then I expect break-word is applied,
|
|
51
|
-
SparqlSteps.getResultNoUriCell(0, 1).should('have.css', 'word-wrap', 'break-word');
|
|
52
|
-
// language attribute is applied.
|
|
53
|
-
SparqlSteps.getResultLiteralCell(0, 1).should('have.attr', 'lang', 'xx');
|
|
54
|
-
SparqlSteps.getResultLiteralCell(0, 1).should('have.css', 'hyphens', 'auto');
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
it('should format result cell properly if result binding is literal and contains data type value', () => {
|
|
58
|
-
// When I execute a query that returns literal result.
|
|
59
|
-
SparqlSteps.typeQuery('select * where { values (?x ) { ("some text with data type 2.0^^xsd:floatsup") }}');
|
|
60
|
-
SparqlSteps.executeQuery();
|
|
61
|
-
|
|
62
|
-
// Then I expect "^^" to be prefixed with <wbr> tag,
|
|
63
|
-
SparqlSteps.getResultNoUriCell(0, 1).then(function($el) {
|
|
64
|
-
expect($el.html()).to.eq("\"some text with data type 2.0<wbr>^^xsd:<wbr>floatsup\"");
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
// and I expect break-word is applied,
|
|
68
|
-
SparqlSteps.getResultCell(0, 1).should('have.css', 'word-wrap', 'break-word');
|
|
69
|
-
// and language attribute is applied.
|
|
70
|
-
SparqlSteps.getResultLiteralCell(0, 1).should('have.attr', 'lang', 'xx');
|
|
71
|
-
SparqlSteps.getResultLiteralCell(0, 1).should('have.css', 'hyphens', 'auto');
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
it('should format bnode', () => {
|
|
75
|
-
// When I execute a query that returns bnode.
|
|
76
|
-
QueryStubs.stubSparqlHistoryResponse(repositoryId);
|
|
77
|
-
SparqlSteps.executeQuery();
|
|
78
|
-
|
|
79
|
-
// Then I expect the "_:" prefix of bnode to not be followed by <wbr> tag,
|
|
80
|
-
SparqlSteps.getResultNoUriCell(0, 1).then(function($el) {
|
|
81
|
-
expect($el.html()).to.eq('_:83222b124ff949648bd78ee778d22f601149');
|
|
82
|
-
});
|
|
83
|
-
});
|
|
84
|
-
});
|