graphdb-workbench-tests 2.3.1 → 2.4.0-TR1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/fixtures/graphdb-import/resource-test-data.ttl +99 -0
  2. package/fixtures/graphql-editor/default-query-response.json +517 -0
  3. package/fixtures/locale-en.json +18 -5
  4. package/fixtures/namespaces/ontotext-generated-namespace.json +22 -0
  5. package/fixtures/queries/empty-query-response.json +11 -0
  6. package/integration/explore/graphs.overview.spec.js +4 -2
  7. package/integration/explore/similariti-index-create.spec.js +315 -0
  8. package/integration/explore/similarity-index.spec.js +88 -0
  9. package/integration/explore/similarity.spec.js +156 -47
  10. package/integration/explore/visual-graph/graphs-config.spec.js +452 -0
  11. package/integration/explore/{visual.graph.spec.js → visual-graph/visual.graph.spec.js} +145 -348
  12. package/integration/home/language-change.spec.js +3 -3
  13. package/integration/import/import.user.data.spec.js +4 -4
  14. package/integration/resource/resource.spec.js +354 -0
  15. package/integration/setup/jdbc-create.spec.js +316 -0
  16. package/integration/setup/jdbc.spec.js +99 -178
  17. package/integration/setup/my-settings.spec.js +9 -41
  18. package/integration/setup/sparql-template-create.js +141 -0
  19. package/integration/setup/sparql-templates.spec.js +82 -146
  20. package/integration/sparql-editor/actions/execute-query.spec.js +44 -0
  21. package/integration/sparql-editor/actions/expand-results-over-sameas.spec.js +136 -0
  22. package/integration/sparql-editor/actions/include-inferred-statements.spec.js +100 -0
  23. package/integration/sparql-editor/actions/save-query.spec.js +70 -0
  24. package/integration/sparql-editor/actions/show-saved-queries.spec.js +61 -0
  25. package/integration/sparql-editor/internationalization.spec.js +41 -0
  26. package/integration/sparql-editor/saved-query/abort-query.spec.js +60 -0
  27. package/integration/sparql-editor/saved-query/delete-query.spec.js +56 -0
  28. package/integration/sparql-editor/saved-query/edit-query.spec.js +68 -0
  29. package/integration/sparql-editor/saved-query/share-query.spec.js +78 -0
  30. package/integration/sparql-editor/sparql-editor.spec.js +20 -0
  31. package/integration/sparql-editor/yasgui-tabs.spec.js +107 -0
  32. package/integration/sparql-editor/yasr/download-as.spec.js +62 -0
  33. package/integration/sparql-editor/yasr/pagination.spec.js +234 -0
  34. package/integration/sparql-editor/yasr/table-plugin.spec.js +191 -0
  35. package/integration/sparql-editor/yasr/toolbar/visual-button.spec.js +56 -0
  36. package/integration-flaky/setup/sparql-template-create.js +139 -0
  37. package/integration-flaky/sparql-editor/actions/execute-update-query.spec.js +89 -0
  38. package/integration-flaky/sparql-editor/actions/share-query.spec.js +84 -0
  39. package/integration-flaky/sparql-editor/lucene-connector.spec.js +62 -0
  40. package/package.json +3 -2
  41. package/steps/application-steps.js +23 -0
  42. package/steps/error-steps.js +9 -0
  43. package/steps/explore/graphs-overview-steps.js +24 -0
  44. package/steps/explore/similarity-index-create-steps.js +113 -0
  45. package/steps/explore/similarity-indexes-steps.js +18 -0
  46. package/steps/import-steps.js +8 -1
  47. package/steps/language-selector-steps.js +22 -0
  48. package/steps/loader-steps.js +10 -0
  49. package/steps/lucene-connector-steps.js +43 -0
  50. package/steps/main-menu-steps.js +39 -0
  51. package/steps/modal-dialog-steps.js +113 -0
  52. package/steps/repository-selector-steps.js +26 -0
  53. package/steps/resource/resource-edit-steps.js +111 -0
  54. package/steps/resource/resource-steps.js +145 -0
  55. package/steps/setup/jdbc-create-steps.js +97 -0
  56. package/steps/setup/jdbc-steps.js +42 -0
  57. package/steps/setup/sparql-create-update-steps.js +55 -0
  58. package/steps/setup/sparql-templates-steps.js +34 -0
  59. package/steps/sparql-editor-steps.js +20 -0
  60. package/steps/visual-graph-steps.js +340 -3
  61. package/steps/yasgui/confirmation-dialog-steps.js +13 -0
  62. package/steps/yasgui/pagination-steps.js +47 -0
  63. package/steps/yasgui/plugin/error-plugin-steps.js +10 -0
  64. package/steps/yasgui/save-query-dialog.js +61 -0
  65. package/steps/yasgui/saved-queries-dialog.js +29 -0
  66. package/steps/yasgui/saved-query.js +25 -0
  67. package/steps/yasgui/share-saved-query-dialog.js +25 -0
  68. package/steps/yasgui/table-plugin-steps.js +29 -0
  69. package/steps/yasgui/yasgui-steps.js +191 -0
  70. package/steps/yasgui/yasqe-steps.js +187 -0
  71. package/steps/yasgui/yasr-steps.js +105 -0
  72. package/stubs/namespace-stubs.js +10 -0
  73. package/stubs/security-stubs.js +69 -0
  74. package/stubs/yasgui/connectors-stubs.js +12 -0
  75. package/stubs/yasgui/query-stubs.js +258 -0
  76. package/support/index.js +2 -0
  77. package/support/repository-commands.js +6 -1
  78. package/support/sparql-commands.js +1 -1
  79. package/support/visual-graph-commands.js +25 -0
  80. package/integration/sparql/main.menu.spec.js +0 -196
  81. package/integration/sparql/sparql-error-handling.spec.js +0 -74
  82. package/integration/sparql/sparql-language-change.spec.js +0 -58
  83. package/integration/sparql/sparql-result-formating.spec.js +0 -84
  84. package/integration/sparql/sparql.menu.spec.js +0 -1244
  85. package/integration-flaky/setup/sparql-templates.spec.js +0 -125
  86. package/integration-flaky/sparql/sparql-language-change.spec.js +0 -45
  87. package/integration-flaky/sparql/sparql.menu.spec.js +0 -75
  88. package/steps/sparql-steps.js +0 -227
@@ -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
- });