graphdb-workbench-tests 3.0.2-TR1 → 3.1.0-WBM-1
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/.editorconfig +17 -0
- package/cypress-flaky.config.js +15 -4
- package/cypress-legacy.config.js +32 -0
- package/cypress.config.js +5 -3
- package/{integration-flaky → e2e-flaky}/explore/visual.graph.spec.js +4 -1
- package/{integration-flaky → e2e-flaky}/import/import-server-files-operations.spec.js +1 -1
- package/{integration-flaky → e2e-flaky}/setup/sparql-template-create.js +9 -2
- package/{integration-flaky → e2e-flaky}/setup/users-and-access/security-and-free-access.spec.js +4 -1
- package/{integration-flaky → e2e-flaky}/sparql-editor/yasr/table-plugin.spec.js +2 -1
- package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration-multi-region.spec.js +4 -1
- package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration-nodes.spec.js +4 -1
- package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration.spec.js +4 -1
- package/e2e-legacy/explore/class-hierarchy/class-hierarchy-with-selected-repository-without-class-hierarchy.js +42 -0
- package/e2e-legacy/explore/class-hierarchy/class-hierarchy-with-selected-repository.js +43 -0
- package/e2e-legacy/explore/class-hierarchy/class-hierarchy-without-selected-repository.js +30 -0
- package/{integration/explore → e2e-legacy/explore/class-hierarchy}/class.hierarchy.spec.js +3 -2
- package/e2e-legacy/explore/class-relationships/class-relationships-repository-with-data.spec.js +42 -0
- package/e2e-legacy/explore/class-relationships/class-relationships-with-selected-repository.spec.js +39 -0
- package/e2e-legacy/explore/class-relationships/class-relationships-without-selected-repository.spec.js +21 -0
- package/{integration/explore/class.relationships.spec.js → e2e-legacy/explore/class-relationships/class-relationships.spec.js} +18 -50
- package/{integration/explore → e2e-legacy/explore/graphs-overview}/graphs.overview.spec.js +5 -4
- package/e2e-legacy/explore/graphs-overview/initial-state/graphs-overview-with-selected-repository.spec.js +44 -0
- package/e2e-legacy/explore/graphs-overview/initial-state/graphs-overview-without-selected-repository.spec.js +32 -0
- package/{integration → e2e-legacy}/explore/visual-graph/graphs-config.spec.js +18 -10
- package/e2e-legacy/explore/visual-graph/visual-graph-with-selected-repository.js +38 -0
- package/e2e-legacy/explore/visual-graph/visual-graph-without-selected-repository.js +21 -0
- package/{integration → e2e-legacy}/explore/visual-graph/visual.graph.spec.js +4 -8
- package/{integration → e2e-legacy}/graphql/activate-deactivate-graphql-endpoint.spec.js +1 -1
- package/{integration → e2e-legacy}/graphql/create-graphql-endpoint.spec.js +1 -1
- package/{integration → e2e-legacy}/graphql/delete-graphql-endpoint.spec.js +1 -1
- package/{integration → e2e-legacy}/graphql/edit-graphql-enpoint.spec.js +2 -2
- package/{integration → e2e-legacy}/graphql/export-graphql-endpoint-definition.spec.js +1 -1
- package/{integration → e2e-legacy}/graphql/filter-graphql-endpoints-on-management-view.spec.js +1 -1
- package/e2e-legacy/graphql/graphql-endpoint management-without-selected-repository.spec.js +21 -0
- package/{integration → e2e-legacy}/graphql/graphql-endpoint-management-view.spec.js +1 -1
- package/e2e-legacy/graphql/graphql-endpoint-management-with-endpoints.spec.js +43 -0
- package/e2e-legacy/graphql/graphql-endpoint-management-with-selected-repository.spec.jsx +39 -0
- package/e2e-legacy/graphql/graphql-playground-with-endpoints.spec.js +40 -0
- package/e2e-legacy/graphql/graphql-playground-with-selected-repository.spec.js +38 -0
- package/e2e-legacy/graphql/graphql-playground-without-selected-repository.spec.js +22 -0
- package/{integration → e2e-legacy}/graphql/graphql-playground.spec.js +2 -2
- package/{integration → e2e-legacy}/graphql/import-graphql-endpoint-definitions.spec.js +1 -1
- package/{integration → e2e-legacy}/graphql/set-default-graphql-endpoint.spec.js +1 -1
- package/{integration → e2e-legacy}/guides/movies-interactive-guide.spec.js +5 -1
- package/{integration → e2e-legacy}/guides/star-wars-interactive-guide.js +6 -1
- package/{integration → e2e-legacy}/home/cookie-policy.spec.js +6 -7
- package/{integration → e2e-legacy}/home/create-repository.spec.js +6 -2
- package/{integration → e2e-legacy}/home/documentation-link.spec.js +4 -1
- package/e2e-legacy/home/home-page-with-selected-repository.spec.js +66 -0
- package/e2e-legacy/home/home-page-without-repositories.spec.js +91 -0
- package/e2e-legacy/home/home-page-without-selected-repository.spec.js +59 -0
- package/{integration → e2e-legacy}/home/language-change.spec.js +6 -3
- package/{integration → e2e-legacy}/home/language-selector.spec.js +4 -1
- package/{integration → e2e-legacy}/home/rdf-resource-search.spec.js +4 -1
- package/{integration → e2e-legacy}/home/view-resource-autocomplete.spec.js +6 -2
- package/{integration → e2e-legacy}/import/import-server-files-batch-operations.spec.js +2 -1
- package/{integration → e2e-legacy}/import/import-server-files.spec.js +2 -1
- package/{integration → e2e-legacy}/import/import-user-data-file-upload.spec.js +10 -3
- package/{integration → e2e-legacy}/import/import-user-data-text-snippet.spec.js +30 -8
- package/{integration → e2e-legacy}/import/import-user-data-url.spec.js +2 -1
- package/{integration → e2e-legacy}/import/import-user-data.spec.js +8 -3
- package/{integration → e2e-legacy}/import/import-view.spec.js +2 -1
- package/e2e-legacy/import/initial-state/import-page-with-selected-repositor.js +51 -0
- package/e2e-legacy/import/initial-state/import-page-with-selected-repository-without-imported-files.js +45 -0
- package/e2e-legacy/import/initial-state/import-page-without-selected-repository.spec.js +28 -0
- package/{integration → e2e-legacy}/monitor/global-operation-statuses-component.spec.js +4 -1
- package/{integration → e2e-legacy}/monitor/monitor.queries.spec.js +4 -1
- package/{integration → e2e-legacy}/monitor/monitor.resources.spec.js +2 -1
- package/{integration → e2e-legacy}/repository/attach-remote-location.spec.js +4 -1
- package/{integration → e2e-legacy}/repository/ontop-repository.spec.js +12 -3
- package/{integration → e2e-legacy}/repository/repositories.spec.js +1 -1
- package/{integration → e2e-legacy}/resource/resource.spec.js +10 -3
- package/{integration → e2e-legacy}/setup/aclmanagement/create-rule.spec.js +3 -1
- package/{integration → e2e-legacy}/setup/aclmanagement/edit-rule.spec.js +2 -1
- package/{integration → e2e-legacy}/setup/aclmanagement/reorder-rules.spec.js +2 -1
- package/{integration → e2e-legacy}/setup/aclmanagement/revert-rules.spec.js +4 -1
- package/{integration → e2e-legacy}/setup/aclmanagement/scopes.spec.js +2 -1
- package/{integration → e2e-legacy}/setup/aclmanagement/update-rules.spec.js +16 -4
- package/{integration → e2e-legacy}/setup/autocomplete.spec.js +4 -1
- package/{integration → e2e-legacy}/setup/connectors-lucene.spec.js +2 -1
- package/{integration → e2e-legacy}/setup/my-settings.spec.js +4 -2
- package/{integration → e2e-legacy}/setup/namespaces.spec.js +6 -2
- package/{integration → e2e-legacy}/setup/plugins.spec.js +4 -1
- package/{integration → e2e-legacy}/setup/rdf-rank.spec.js +4 -1
- package/{integration → e2e-legacy}/setup/sparql-template-create.js +18 -5
- package/{integration → e2e-legacy}/setup/sparql-templates.spec.js +2 -1
- package/{integration → e2e-legacy}/setup/user-and-access.spec.js +9 -5
- package/{integration → e2e-legacy}/sparql-editor/actions/inferred-sameas.spec.js +3 -1
- package/{integration → e2e-legacy}/sparql-editor/internationalization.spec.js +4 -1
- package/{integration → e2e-legacy}/sparql-editor/saved-query/edit-query.spec.js +3 -0
- package/{integration → e2e-legacy}/sparql-editor/saved-query/share-query.spec.js +5 -1
- package/{integration → e2e-legacy}/sparql-editor/sparql-editor.spec.js +4 -1
- package/e2e-legacy/sparql-editor/sparql-page-with-selected-repository.spec.js +33 -0
- package/e2e-legacy/sparql-editor/sparql-page-without-selected-repository.spec.js +26 -0
- package/{integration → e2e-legacy}/sparql-editor/yasgui-tabs.spec.js +4 -1
- package/{integration → e2e-legacy}/ttyg/agent-list.spec.js +21 -1
- package/{integration → e2e-legacy}/ttyg/agent-select-menu.spec.js +24 -0
- package/{integration → e2e-legacy}/ttyg/chat-list.spec.js +2 -1
- package/{integration → e2e-legacy}/ttyg/chat-panel.spec.js +29 -3
- package/{integration → e2e-legacy}/ttyg/create-agent.spec.js +10 -3
- package/{integration → e2e-legacy}/ttyg/create-chat.spec.js +3 -1
- package/{integration → e2e-legacy}/ttyg/edit-agent.spec.js +18 -8
- package/e2e-legacy/ttyg/ttyg-permission.spec.js +69 -0
- package/{integration → e2e-legacy}/ttyg/ttyg-view.spec.js +2 -1
- package/fixtures/locale-en.json +19 -1
- package/fixtures/ttyg/agent/get-agent-list-with-incompatible-agents.json +79 -0
- package/fixtures/ttyg/chats/ask-question.json +12 -2
- package/fixtures/ttyg/chats/get-chat.json +6 -1
- package/npm-shrinkwrap.json +3540 -3815
- package/package.json +41 -42
- package/steps/class-views-steps.js +16 -0
- package/steps/error-steps.js +15 -0
- package/steps/explore/class-relationships-steps.js +64 -0
- package/steps/explore/graphs-overview-steps.js +21 -1
- package/steps/home-steps.js +103 -13
- package/steps/import/import-user-data-steps.js +4 -0
- package/steps/language-selector-steps.js +2 -2
- package/steps/main-menu-steps.js +44 -6
- package/steps/modal-dialog-steps.js +20 -0
- package/steps/repository-selector-steps.js +3 -3
- package/steps/repository-steps.js +7 -1
- package/steps/setup/namespace-steps.js +1 -1
- package/steps/setup/user-and-access-steps.js +5 -1
- package/steps/ttyg/chat-panel-steps.js +1 -1
- package/steps/ttyg/ttyg-agent-settings-modal.steps.js +8 -12
- package/steps/ttyg/ttyg-view-steps.js +36 -3
- package/steps/visual-graph-steps.js +4 -0
- package/steps/widgets/active-repository-widget-steps.js +13 -0
- package/steps/widgets/license-widget-steps.js +9 -0
- package/steps/widgets/repository-errors-widget-steps.js +21 -0
- package/steps/widgets/saved-sparql-queries-widget-steps.js +9 -0
- package/stubs/autocomplete/autocomplete-stubs.js +7 -0
- package/stubs/repositories/repositories-stubs.js +4 -0
- package/stubs/repositories-stub.js +6 -6
- package/stubs/saved-queries-stubs.js +5 -0
- package/stubs/ttyg/ttyg-stubs.js +4 -7
- package/support/commands.js +19 -0
- package/support/repository-commands.js +6 -3
- package/Dockerfile +0 -11
- package/fixtures/repositories/get-remote-and-local-repositories.json +0 -34
- package/integration/explore/similarity-index/similarity-index-create.spec.js +0 -333
- package/integration/explore/similarity-index/similarity-index.spec.js +0 -88
- package/integration/explore/similarity-index/similarity.spec.js +0 -628
- package/integration/home/workbench.home.spec.js +0 -30
- package/integration/setup/jdbc/jdbc-create.spec.js +0 -329
- package/integration/setup/jdbc/jdbc.spec.js +0 -161
- /package/{integration-flaky → e2e-flaky}/import/import-user-data-batch-operations.spec.js +0 -0
- /package/{integration-flaky → e2e-flaky}/import/import.server.files.spec.js +0 -0
- /package/{integration-flaky → e2e-flaky}/sparql-editor/actions/execute-update-query.spec.js +0 -0
- /package/{integration-flaky → e2e-flaky}/sparql-editor/actions/share-query.spec.js +0 -0
- /package/{integration-flaky → e2e-flaky}/sparql-editor/lucene-connector.spec.js +0 -0
- /package/{integration-flaky → e2e-flaky}/sparql-editor/plugins/error-plugin.spec.js +0 -0
- /package/{integration-flaky → e2e-flaky}/ttyg/ttyg-permission.spec.js +0 -0
- /package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration-properties.spec.js +0 -0
- /package/{integration → e2e-legacy}/cluster/cluster-legend.spec.js +0 -0
- /package/{integration → e2e-legacy}/cluster/cluster-states.spec.js +0 -0
- /package/{integration → e2e-legacy}/cluster/edit-cluster-nodes-modal.spec.js +0 -0
- /package/{integration → e2e-legacy}/explore/visual-graph/visual-graph-node-labels.spec.js +0 -0
- /package/{integration → e2e-legacy}/help/system-information.spec.js +0 -0
- /package/{integration → e2e-legacy}/home/google-analytics.spec.js +0 -0
- /package/{integration → e2e-legacy}/import/import-user-data-settings-dialog.spec.js +0 -0
- /package/{integration → e2e-legacy}/license/license.spec.js +0 -0
- /package/{integration → e2e-legacy}/monitor/monitor.backup-and-restore.spec.js +0 -0
- /package/{integration → e2e-legacy}/repository/repository-commands.spec.js +0 -0
- /package/{integration → e2e-legacy}/setup/aclmanagement/delete-rule.spec.js +0 -0
- /package/{integration → e2e-legacy}/setup/aclmanagement/render-rules.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/actions/execute-query.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/actions/expand-results-over-sameas.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/actions/include-inferred-statements.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/actions/save-query.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/actions/show-saved-queries.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/saved-query/abort-query.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/saved-query/delete-query.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/saved-query/readonly-query.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/yasr/download-as.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/yasr/pagination.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/yasr/table-plugin.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/yasr/toolbar/visual-graph-button.spec.js +0 -0
- /package/{integration → e2e-legacy}/ttyg/clone-agent.spec.js +0 -0
- /package/{integration → e2e-legacy}/ttyg/delete-agent.spec.js +0 -0
- /package/support/{index.js → e2e.js} +0 -0
|
@@ -3,7 +3,10 @@ import {AttachRepositorySteps} from "../../steps/repositories/attach-repository-
|
|
|
3
3
|
import {ModalDialogSteps} from "../../steps/modal-dialog-steps";
|
|
4
4
|
import {RepositoriesStubs} from "../../stubs/repositories/repositories-stubs";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* TODO: Fix me. Broken due to migration (loader is not implemented)
|
|
8
|
+
*/
|
|
9
|
+
describe.skip('Attach remote location', () => {
|
|
7
10
|
|
|
8
11
|
it('Should create and delete remote instance', () => {
|
|
9
12
|
cy.visit('/repository');
|
|
@@ -15,7 +15,10 @@ describe('Ontop repositories', () => {
|
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
//Check that 'Ontop' type repository is available and that the configuration fields are present and active.
|
|
18
|
-
|
|
18
|
+
/**
|
|
19
|
+
* TODO: Fix me. Broken due to migration (loader is not implemented)
|
|
20
|
+
*/
|
|
21
|
+
it.skip('should check if Ontop repository type is available', () => {
|
|
19
22
|
RepositorySteps.visit();
|
|
20
23
|
RepositorySteps.getCreateRepositoryButton().click();
|
|
21
24
|
RepositorySteps.getRepositoryTypeButton('ontop').should('be.visible');
|
|
@@ -139,7 +142,10 @@ describe('Ontop repositories', () => {
|
|
|
139
142
|
OntopRepositorySteps.getTestConnectionButton().should('not.be.disabled');
|
|
140
143
|
});
|
|
141
144
|
|
|
142
|
-
|
|
145
|
+
/**
|
|
146
|
+
* TODO: Fix me. Broken due to migration (Repository selector changed)
|
|
147
|
+
*/
|
|
148
|
+
it.skip('should create ontop repository', () => {
|
|
143
149
|
RepositoryStubs.stubRepoCreationEndpoints(repositoryId);
|
|
144
150
|
// When I visit the create ontop page
|
|
145
151
|
OntopRepositorySteps.visitCreate();
|
|
@@ -200,7 +206,10 @@ describe('Ontop repositories', () => {
|
|
|
200
206
|
RepositorySteps.getRepoIcon('ontop').should('be.visible');
|
|
201
207
|
});
|
|
202
208
|
|
|
203
|
-
|
|
209
|
+
/**
|
|
210
|
+
* TODO: Fix me. Broken due to migration (loader is not implemented)
|
|
211
|
+
*/
|
|
212
|
+
it.skip('should edit ontop repository', () => {
|
|
204
213
|
RepositoryStubs.stubEditOntopResponse(repositoryId);
|
|
205
214
|
RepositoryStubs.stubSaveOntopResponse(repositoryId);
|
|
206
215
|
RepositoryStubs.stubRepoCreationEndpoints(repositoryId);
|
|
@@ -8,7 +8,7 @@ import {ImportSettingsDialogSteps} from "../../steps/import/import-settings-dial
|
|
|
8
8
|
import {ClusterStubs} from "../../stubs/cluster/cluster-stubs";
|
|
9
9
|
import {RepositoriesStubs} from "../../stubs/repositories/repositories-stubs";
|
|
10
10
|
|
|
11
|
-
describe('Repositories', () => {
|
|
11
|
+
describe.skip('Repositories', () => {
|
|
12
12
|
|
|
13
13
|
let repositoryId;
|
|
14
14
|
const SHACL_SHAPE_DATA = "prefix ex: <http://example.com/ns#>\n" +
|
|
@@ -17,7 +17,8 @@ const OBJECT_RESOURCE = 'http:%2F%2Fexample.com%2Fontology%23Metric';
|
|
|
17
17
|
const IMPLICIT_EXPLICIT_RESOURCE = 'http:%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23type';
|
|
18
18
|
const TRIPLE_RESOURCE = '%3C%3C%3Chttp:%2F%2Fexample.com%2Fresource%2Fperson%2FW6J1827%3E%20%3Chttp:%2F%2Fexample.com%2Fontology%23hasAddress%3E%20%3Chttp:%2F%2Fexample.com%2Fresource%2Fperson%2FW6J1827%2Faddress%3E%3E%3E';
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
// TODO: Fix me. Broken due to migration (Error: unknown)
|
|
21
|
+
describe.skip('Resource view', () => {
|
|
21
22
|
let repositoryId;
|
|
22
23
|
beforeEach(() => {
|
|
23
24
|
repositoryId = 'repository-' + Date.now();
|
|
@@ -62,7 +63,10 @@ describe('Resource view', () => {
|
|
|
62
63
|
YasrSteps.getResults().should('have.length', 5);
|
|
63
64
|
});
|
|
64
65
|
|
|
65
|
-
|
|
66
|
+
/**
|
|
67
|
+
* TODO: Fix me. Broken due to migration (problem with '/graphs-visualizations' view)
|
|
68
|
+
*/
|
|
69
|
+
it.skip('should navigate to visual graph view', () => {
|
|
66
70
|
// When I am on resource view and page loaded a resource.
|
|
67
71
|
ResourceSteps.visit(`uri=${SUBJECT_RESOURCE}&role=subject`);
|
|
68
72
|
|
|
@@ -322,7 +326,10 @@ describe('Resource view', () => {
|
|
|
322
326
|
});
|
|
323
327
|
});
|
|
324
328
|
|
|
325
|
-
|
|
329
|
+
/**
|
|
330
|
+
* TODO: Fix me. Broken due to migration (problem with yasgui in resource view)
|
|
331
|
+
*/
|
|
332
|
+
context.skip('Triple resource', () => {
|
|
326
333
|
|
|
327
334
|
it('should show triple resource', {
|
|
328
335
|
retries: {
|
|
@@ -2,7 +2,9 @@ import {AclManagementSteps} from "../../../steps/setup/acl-management-steps";
|
|
|
2
2
|
import {ACL_VIEW} from "../../../steps/setup/acl-management-steps";
|
|
3
3
|
import {ApplicationSteps} from "../../../steps/application-steps";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
// TODO: Fix me. Broken due to migration (Error: beforeEach)
|
|
7
|
+
describe.skip('ACL Management: create rule', () => {
|
|
6
8
|
|
|
7
9
|
let repositoryId;
|
|
8
10
|
|
|
@@ -2,7 +2,8 @@ import {AclManagementSteps} from "../../../steps/setup/acl-management-steps";
|
|
|
2
2
|
import {ACL_VIEW} from "../../../steps/setup/acl-management-steps";
|
|
3
3
|
import {ApplicationSteps} from "../../../steps/application-steps";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
//TODO: Fix me. Broken due to migration (Error: beforeEach)
|
|
6
|
+
describe.skip('ACL Management: edit rule', () => {
|
|
6
7
|
|
|
7
8
|
let repositoryId;
|
|
8
9
|
|
|
@@ -2,7 +2,8 @@ import {AclManagementSteps} from "../../../steps/setup/acl-management-steps";
|
|
|
2
2
|
import {ACL_VIEW} from "../../../steps/setup/acl-management-steps";
|
|
3
3
|
import {ApplicationSteps} from "../../../steps/application-steps";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// TODO: Fix me. Broken due to migration (Error: beforeEach)
|
|
6
|
+
describe.skip('ACL Management: reorder rules', () => {
|
|
6
7
|
|
|
7
8
|
let repositoryId;
|
|
8
9
|
|
|
@@ -2,7 +2,10 @@ import {ACL_VIEW, AclManagementSteps} from "../../../steps/setup/acl-management-
|
|
|
2
2
|
import {ApplicationSteps} from "../../../steps/application-steps";
|
|
3
3
|
import {ModalDialogSteps} from "../../../steps/modal-dialog-steps";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* TODO: Fix me. Broken due to migration (Changes in main menu)
|
|
7
|
+
*/
|
|
8
|
+
describe.skip('ACL Management: revert rules', () => {
|
|
6
9
|
|
|
7
10
|
let repositoryId;
|
|
8
11
|
|
|
@@ -48,7 +48,8 @@ describe('ACL Management: rule scopes', () => {
|
|
|
48
48
|
AclManagementSteps.getActiveTab().should('have.text', 'System');
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
// TODO: Fix me. Broken due to migration (Error: unknown)
|
|
52
|
+
it.skip('Should create rules', () => {
|
|
52
53
|
// I select Clear graph tab
|
|
53
54
|
AclManagementSteps.selectTab(1);
|
|
54
55
|
AclManagementSteps.getActiveTab().should('have.text', 'Clear graph');
|
|
@@ -82,7 +82,10 @@ describe('ACL Management: update rules', () => {
|
|
|
82
82
|
AclManagementSteps.checkStatementRules([ACL_VIEW[0], newRule, editedRule, ACL_VIEW[2], ACL_VIEW[3]]);
|
|
83
83
|
});
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
/**
|
|
86
|
+
* TODO: Fix me. Broken due to migration (Changes in main menu)
|
|
87
|
+
*/
|
|
88
|
+
it.skip('Should prevent leaving the page when there is new rule added', () => {
|
|
86
89
|
// Given I have opened ACL management page
|
|
87
90
|
// When I don't change anything and try to leave the page
|
|
88
91
|
ApplicationSteps.openImportPage();
|
|
@@ -106,7 +109,10 @@ describe('ACL Management: update rules', () => {
|
|
|
106
109
|
cy.url().should('contain', '/import');
|
|
107
110
|
});
|
|
108
111
|
|
|
109
|
-
|
|
112
|
+
/**
|
|
113
|
+
* TODO: Fix me. Broken due to migration (Changes in main menu)
|
|
114
|
+
*/
|
|
115
|
+
it.skip('Should prevent leaving the page when there is an edited rule', () => {
|
|
110
116
|
// Given I have opened ACL management page
|
|
111
117
|
// When I edit a rule
|
|
112
118
|
AclManagementSteps.editRule(1);
|
|
@@ -118,7 +124,10 @@ describe('ACL Management: update rules', () => {
|
|
|
118
124
|
ModalDialogSteps.getDialog().should('be.visible');
|
|
119
125
|
});
|
|
120
126
|
|
|
121
|
-
|
|
127
|
+
/**
|
|
128
|
+
* TODO: Fix me. Broken due to migration (Changes in main menu)
|
|
129
|
+
*/
|
|
130
|
+
it.skip('Should prevent leaving the page when there is a deleted rule', () => {
|
|
122
131
|
// Given I have opened ACL management page
|
|
123
132
|
// When I delete a rule
|
|
124
133
|
AclManagementSteps.deleteRule(1);
|
|
@@ -129,7 +138,10 @@ describe('ACL Management: update rules', () => {
|
|
|
129
138
|
ModalDialogSteps.getDialog().should('be.visible');
|
|
130
139
|
});
|
|
131
140
|
|
|
132
|
-
|
|
141
|
+
/**
|
|
142
|
+
* TODO: Fix me. Broken due to migration (Changes in main menu)
|
|
143
|
+
*/
|
|
144
|
+
it.skip('Should prevent leaving the page when there is a moved rule', () => {
|
|
133
145
|
// Given I have opened ACL management page
|
|
134
146
|
// When I move a rule
|
|
135
147
|
AclManagementSteps.moveRuleDown(1);
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import {AutocompleteSteps} from "../../steps/setup/autocomplete-steps";
|
|
2
2
|
import {LicenseStubs} from "../../stubs/license-stubs";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* TODO: Fix me. Broken due to migration (loader is not implemented)
|
|
6
|
+
*/
|
|
7
|
+
describe.skip('Autocomplete ', () => {
|
|
5
8
|
|
|
6
9
|
let repositoryId;
|
|
7
10
|
|
|
@@ -20,7 +20,8 @@ describe('Setup / Connectors - Lucene', () => {
|
|
|
20
20
|
cy.deleteRepository(repositoryId);
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
// TODO: Fix me. Broken due to migration (Error: unknown)
|
|
24
|
+
it.skip('Test that no indexes are available', () => {
|
|
24
25
|
getConnectorsPage()
|
|
25
26
|
.should('be.visible')
|
|
26
27
|
.and('contain', 'No connector instances.');
|
|
@@ -77,7 +77,8 @@ describe('My Settings', () => {
|
|
|
77
77
|
.and('be.disabled');
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
// TODO: Fix me. Broken due to migration (Error: unknown)
|
|
81
|
+
it.skip('should change settings for admin and verify changes are reflected in SPARQL editor', () => {
|
|
81
82
|
SecurityStubs.resetGetAdminUserStub();
|
|
82
83
|
cy.get('.sparql-editor-settings').should('be.visible');
|
|
83
84
|
|
|
@@ -137,7 +138,8 @@ describe('My Settings', () => {
|
|
|
137
138
|
});
|
|
138
139
|
});
|
|
139
140
|
|
|
140
|
-
|
|
141
|
+
// TODO: Fix me. Broken due to migration (Error: unknown)
|
|
142
|
+
it.skip('Should test the "Show schema ON/OFF by default in visual graph" setting in My Settings', () => {
|
|
141
143
|
const DRY_GRAPH = "http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#Dry";
|
|
142
144
|
//Verify that schema statements are ON in My settings
|
|
143
145
|
cy.get('#schema-on').find('.switch:checkbox').should('be.checked');
|
|
@@ -3,7 +3,10 @@ import {ApplicationSteps} from "../../steps/application-steps";
|
|
|
3
3
|
import {NamespaceStubs} from "../../stubs/namespace-stubs";
|
|
4
4
|
import {ModalDialogSteps} from "../../steps/modal-dialog-steps";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* TODO: Fix me. Broken due to migration (loader is not implemented)
|
|
8
|
+
*/
|
|
9
|
+
describe.skip('Namespaces', () => {
|
|
7
10
|
|
|
8
11
|
let repositoryId;
|
|
9
12
|
const DEFAULT_NAMESPACES = {};
|
|
@@ -235,8 +238,9 @@ describe('Namespaces', () => {
|
|
|
235
238
|
ApplicationSteps.getErrorNotifications().should('be.visible')
|
|
236
239
|
.and('contain', 'Internal Server Error');
|
|
237
240
|
// And the prefix and namespace fields should not be cleared to allow user to correct the error
|
|
241
|
+
// writing in the field above should clear the field first
|
|
238
242
|
NamespaceSteps.getInlineNamespacePrefix(0).should('have.value', 'test1');
|
|
239
|
-
|
|
243
|
+
NamespaceSteps.getInlineNamespaceValue(0).should('have.value', 'http://test.com');
|
|
240
244
|
});
|
|
241
245
|
|
|
242
246
|
it('Should allow to delete existing namespaces', () => {
|
|
@@ -2,7 +2,10 @@ import {PluginsSteps} from "../../steps/setup/plugins-steps";
|
|
|
2
2
|
import {PluginsStubs} from "../../stubs/setup/plugins-stubs";
|
|
3
3
|
import {LicenseStubs} from "../../stubs/license-stubs";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* TODO: Fix me. Broken due to migration (loader is not implemented)
|
|
7
|
+
*/
|
|
8
|
+
describe.skip('Plugins view', () => {
|
|
6
9
|
|
|
7
10
|
let repositoryId;
|
|
8
11
|
|
|
@@ -6,7 +6,8 @@ import {RepositorySelectorSteps} from "../../steps/repository-selector-steps";
|
|
|
6
6
|
import {SparqlTemplatesSteps} from "../../steps/setup/sparql-templates-steps";
|
|
7
7
|
import {ImportUserDataSteps} from "../../steps/import/import-user-data-steps";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// TODO: Fix me. Broken due to migration (Error: unknown)
|
|
10
|
+
describe.skip('SPARQL create template', () => {
|
|
10
11
|
|
|
11
12
|
let repositoryId;
|
|
12
13
|
let secondRepositoryId;
|
|
@@ -46,7 +47,10 @@ describe('SPARQL create template', () => {
|
|
|
46
47
|
SparqlCreateUpdateSteps.getInvalidErrorElement().contains(`'${invalidTemplateName}' is not a valid IRI`);
|
|
47
48
|
});
|
|
48
49
|
|
|
49
|
-
|
|
50
|
+
/**
|
|
51
|
+
* TODO: Fix me. Broken due to migration (problem with yasgui in resource view)
|
|
52
|
+
*/
|
|
53
|
+
it.skip('should has error message described that query mode is invalid', () => {
|
|
50
54
|
// When I visit 'Sparql create template' view,
|
|
51
55
|
// and fill valid template id.
|
|
52
56
|
SparqlCreateUpdateSteps.typeTemplateId('http://test');
|
|
@@ -70,7 +74,10 @@ describe('SPARQL create template', () => {
|
|
|
70
74
|
ImportUserDataSteps.verifyUserImportUrl();
|
|
71
75
|
});
|
|
72
76
|
|
|
73
|
-
|
|
77
|
+
/**
|
|
78
|
+
* TODO: Fix me. Broken due to migration (Changes in main menu)
|
|
79
|
+
*/
|
|
80
|
+
it.skip('should confirm me before navigate when template id is changed', () => {
|
|
74
81
|
// When I visit 'Sparql create template' view,
|
|
75
82
|
// and set template id.
|
|
76
83
|
SparqlCreateUpdateSteps.typeTemplateId('http://test');
|
|
@@ -103,7 +110,10 @@ describe('SPARQL create template', () => {
|
|
|
103
110
|
ImportUserDataSteps.verifyUserImportUrl();
|
|
104
111
|
});
|
|
105
112
|
|
|
106
|
-
|
|
113
|
+
/**
|
|
114
|
+
* TODO: Fix me. Broken due to migration (Repository selector is changed)
|
|
115
|
+
*/
|
|
116
|
+
it.skip('should not change the view if I am creating a new sparql template and change the repository', () => {
|
|
107
117
|
// When I visit 'Sparql create template' view,
|
|
108
118
|
// make some changes.
|
|
109
119
|
SparqlCreateUpdateSteps.typeTemplateId('http://test');
|
|
@@ -115,7 +125,10 @@ describe('SPARQL create template', () => {
|
|
|
115
125
|
ModalDialogSteps.getDialog().should('be.visible');
|
|
116
126
|
});
|
|
117
127
|
|
|
118
|
-
|
|
128
|
+
/**
|
|
129
|
+
* TODO: Fix me. Broken due to migration (Repository selector is changed)
|
|
130
|
+
*/
|
|
131
|
+
it.skip('Should redirect to templates catalog view when repository is changed', () => {
|
|
119
132
|
// When I visit 'Sparql create template' view
|
|
120
133
|
// When I change the repository.
|
|
121
134
|
RepositorySelectorSteps.selectRepository(secondRepositoryId);
|
|
@@ -36,7 +36,8 @@ describe('SPARQL Templates', () => {
|
|
|
36
36
|
SparqlTemplatesSteps.getNoTemplateDefinedElement().should('contain.text', 'No templates are defined');
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
// TODO: Fix me. Broken due to migration (Error: unknown)
|
|
40
|
+
it.skip('should create a query and delete it', () => {
|
|
40
41
|
// When I visit 'Sparql templates' view,
|
|
41
42
|
// and click on create template button.
|
|
42
43
|
SparqlTemplatesSteps.clickOnCreateSparqlTemplateButton();
|
|
@@ -7,6 +7,9 @@ import HomeSteps from "../../steps/home-steps";
|
|
|
7
7
|
import {LoginSteps} from "../../steps/login-steps";
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* TODO: Fix me. Broken due to migration (Error: unknown)
|
|
12
|
+
*/
|
|
10
13
|
describe('User and Access', () => {
|
|
11
14
|
|
|
12
15
|
const PASSWORD = "password";
|
|
@@ -197,7 +200,8 @@ describe('User and Access', () => {
|
|
|
197
200
|
assertUserAuths(graphqlUser, {repo: repositoryId3, read: false, write: true, graphql: true});
|
|
198
201
|
});
|
|
199
202
|
|
|
200
|
-
|
|
203
|
+
// TODO remove skipped flag from all tests after merge of https://github.com/Ontotext-AD/graphdb-workbench/pull/2042
|
|
204
|
+
it.skip('Should have access to 5 pages when have graphql only rights', () => {
|
|
201
205
|
cy.wait('@getRepositories');
|
|
202
206
|
// WHEN I create a user with read + GraphQL for repository #2
|
|
203
207
|
createUser(graphqlUser, PASSWORD, ROLE_USER, {readWrite: true, graphql: true, repoName: repositoryId1});
|
|
@@ -215,7 +219,7 @@ describe('User and Access', () => {
|
|
|
215
219
|
});
|
|
216
220
|
});
|
|
217
221
|
|
|
218
|
-
it('Should not have access endpoints management when have read graphql only rights', () => {
|
|
222
|
+
it.skip('Should not have access endpoints management when have read graphql only rights', () => {
|
|
219
223
|
cy.wait('@getRepositories');
|
|
220
224
|
// WHEN I create a user with read + GraphQL for repository #2
|
|
221
225
|
createUser(graphqlUser, PASSWORD, ROLE_USER, {read: true, graphql: true, repoName: repositoryId1});
|
|
@@ -233,7 +237,7 @@ describe('User and Access', () => {
|
|
|
233
237
|
});
|
|
234
238
|
});
|
|
235
239
|
|
|
236
|
-
it('Should have all access to endpoints management when have REPO_MANAGER role', () => {
|
|
240
|
+
it.skip('Should have all access to endpoints management when have REPO_MANAGER role', () => {
|
|
237
241
|
cy.wait('@getRepositories');
|
|
238
242
|
createUser(graphqlUser, PASSWORD, ROLE_REPO_MANAGER);
|
|
239
243
|
//enable security
|
|
@@ -249,7 +253,7 @@ describe('User and Access', () => {
|
|
|
249
253
|
});
|
|
250
254
|
});
|
|
251
255
|
|
|
252
|
-
it('Can have Free Access and GraphQL working together', () => {
|
|
256
|
+
it.skip('Can have Free Access and GraphQL working together', () => {
|
|
253
257
|
cy.wait('@getRepositories');
|
|
254
258
|
//enable security
|
|
255
259
|
UserAndAccessSteps.toggleSecurity();
|
|
@@ -368,7 +372,7 @@ describe('User and Access', () => {
|
|
|
368
372
|
if (isAdmin) {
|
|
369
373
|
UserAndAccessSteps.getUsersTable().should('be.visible');
|
|
370
374
|
} else {
|
|
371
|
-
UserAndAccessSteps.
|
|
375
|
+
UserAndAccessSteps.getPermissionError().should('contain',
|
|
372
376
|
'You have no permission to access this functionality with your current credentials.');
|
|
373
377
|
}
|
|
374
378
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {SparqlEditorSteps} from "../../../steps/sparql-editor-steps";
|
|
2
2
|
import {YasqeSteps} from "../../../steps/yasgui/yasqe-steps";
|
|
3
3
|
import {RepositoriesStub} from "../../../stubs/repositories-stub";
|
|
4
|
+
import {AutocompleteStubs} from "../../../stubs/autocomplete/autocomplete-stubs";
|
|
4
5
|
|
|
5
6
|
describe('Expand results over owl:sameAs', () => {
|
|
6
7
|
|
|
@@ -8,9 +9,10 @@ describe('Expand results over owl:sameAs', () => {
|
|
|
8
9
|
|
|
9
10
|
beforeEach(() => {
|
|
10
11
|
repositoryId = 'sparql-editor-' + Date.now();
|
|
11
|
-
cy.
|
|
12
|
+
cy.presetRepository(repositoryId);
|
|
12
13
|
RepositoriesStub.stubOntopRepository(repositoryId);
|
|
13
14
|
RepositoriesStub.stubNameSpaces(repositoryId);
|
|
15
|
+
AutocompleteStubs.stubAutocompleteEnabled(false);
|
|
14
16
|
});
|
|
15
17
|
|
|
16
18
|
it('should not be able to toggle the sameAs button state if repository is virtual', () => {
|
|
@@ -6,7 +6,10 @@ import {YasrSteps} from "../../steps/yasgui/yasr-steps";
|
|
|
6
6
|
import {SparqlEditorSteps} from "../../steps/sparql-editor-steps";
|
|
7
7
|
import {ImportUserDataSteps} from "../../steps/import/import-user-data-steps";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* TODO: Fix me. Broken due to migration (The language selector is changed)
|
|
11
|
+
*/
|
|
12
|
+
describe.skip('Internationalization of ontotext-yasgui-web-component', () => {
|
|
10
13
|
let repositoryId;
|
|
11
14
|
beforeEach(() => {
|
|
12
15
|
repositoryId = 'sparql-editor-' + Date.now();
|
|
@@ -5,6 +5,9 @@ import {SavedQuery} from "../../../steps/yasgui/saved-query";
|
|
|
5
5
|
import {SavedQueriesDialog} from "../../../steps/yasgui/saved-queries-dialog";
|
|
6
6
|
import {SaveQueryDialog} from "../../../steps/yasgui/save-query-dialog";
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* TODO: Fix me. Broken due to migration (Error: beforeEach)
|
|
10
|
+
*/
|
|
8
11
|
describe('Edit saved queries', () => {
|
|
9
12
|
|
|
10
13
|
let repositoryId;
|
|
@@ -6,7 +6,11 @@ import {DEFAULT_QUERY, SavedQuery} from "../../../steps/yasgui/saved-query";
|
|
|
6
6
|
import {SavedQueriesDialog} from "../../../steps/yasgui/saved-queries-dialog";
|
|
7
7
|
import {ShareSavedQueryDialog} from "../../../steps/yasgui/share-saved-query-dialog";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* TODO: Fix me. Broken due to migration (Error: beforeEach)
|
|
12
|
+
*/
|
|
13
|
+
describe.skip('Share saved queries', () => {
|
|
10
14
|
|
|
11
15
|
let repositoryId;
|
|
12
16
|
|
|
@@ -32,7 +32,10 @@ describe('Sparql editor', () => {
|
|
|
32
32
|
YasrSteps.getResults().should('be.visible').and('have.length.gt', 0);
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
/**
|
|
36
|
+
* TODO: Fix me. Broken due to migration (Repository selector changed)
|
|
37
|
+
*/
|
|
38
|
+
it.skip('Should reset yasgui state when repository is changed', () => {
|
|
36
39
|
// create second repository
|
|
37
40
|
secondRepositoryId = repositoryId + '-second';
|
|
38
41
|
cy.createRepository({id: secondRepositoryId});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import SparqlSteps from "../../steps/sparql-steps";
|
|
2
|
+
import HomeSteps from "../../steps/home-steps";
|
|
3
|
+
import {MainMenuSteps} from "../../steps/main-menu-steps";
|
|
4
|
+
|
|
5
|
+
describe('SPARQL page with selected repository', () => {
|
|
6
|
+
|
|
7
|
+
let repositoryId;
|
|
8
|
+
|
|
9
|
+
beforeEach(() => {
|
|
10
|
+
repositoryId = 'sparql-page-' + Date.now();
|
|
11
|
+
cy.createRepository({id: repositoryId});
|
|
12
|
+
cy.presetRepository(repositoryId);
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
afterEach(() => {
|
|
16
|
+
cy.deleteRepository(repositoryId);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it('Should render SPARQL page with editor via URL', () => {
|
|
20
|
+
// Given, I visit the SPARQL page via URL, and I have a selected repository
|
|
21
|
+
SparqlSteps.visit();
|
|
22
|
+
// Then, I expect to see the editor
|
|
23
|
+
SparqlSteps.getQueryArea().should('be.visible');
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
it('Should render SPARQL page with editor via navigation menu', () => {
|
|
27
|
+
// Given I open the SPARQL page, via navigation through the home page, and I have a selected repository
|
|
28
|
+
HomeSteps.visit();
|
|
29
|
+
MainMenuSteps.clickOnSparqlMenu();
|
|
30
|
+
// Then, I expect to see the editor
|
|
31
|
+
SparqlSteps.getQueryArea().should('be.visible');
|
|
32
|
+
});
|
|
33
|
+
})
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import SparqlSteps from "../../steps/sparql-steps";
|
|
2
|
+
import HomeSteps from "../../steps/home-steps";
|
|
3
|
+
import {MainMenuSteps} from "../../steps/main-menu-steps";
|
|
4
|
+
import {ErrorSteps} from "../../steps/error-steps";
|
|
5
|
+
|
|
6
|
+
describe('SPARQL page without selected repository', () => {
|
|
7
|
+
it('Should render SPARQL page without selected repository via URL', () => {
|
|
8
|
+
// Given, I visit the SPARQL page via URL and I haven't selected a repository
|
|
9
|
+
SparqlSteps.visit();
|
|
10
|
+
// Then
|
|
11
|
+
validateNoRepositoriesSparqlPage();
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
it('Should render SPARQL page without selected repository via navigation menu', () => {
|
|
15
|
+
// Given, I visit the SPARQL page via navigation menu and I haven't selected a repository'
|
|
16
|
+
HomeSteps.visit();
|
|
17
|
+
MainMenuSteps.clickOnSparqlMenu();
|
|
18
|
+
// Then
|
|
19
|
+
validateNoRepositoriesSparqlPage();
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
function validateNoRepositoriesSparqlPage() {
|
|
24
|
+
SparqlSteps.getQueryArea().should('not.exist');
|
|
25
|
+
ErrorSteps.verifyNoConnectedRepoMessage();
|
|
26
|
+
}
|
|
@@ -99,7 +99,10 @@ describe('Yasgui tabs', () => {
|
|
|
99
99
|
YasguiSteps.getCurrentTabTitle().should('have.text', 'Unnamed 1');
|
|
100
100
|
});
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
/**
|
|
103
|
+
* TODO: Fix me. Broken due to migration (Changes in main menu)
|
|
104
|
+
*/
|
|
105
|
+
it.skip('Should display information about ongoing requests if try to navigate to other page when there is a tab with ongoing request', () => {
|
|
103
106
|
// When I execute a long-running query,
|
|
104
107
|
QueryStubs.stubLongRunningQuery(repositoryId);
|
|
105
108
|
SparqlEditorSteps.visitSparqlEditorPage();
|
|
@@ -10,7 +10,10 @@ describe('TTYG agent list', () => {
|
|
|
10
10
|
cy.presetRepository('starwars');
|
|
11
11
|
});
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* TODO: Fix me, broken due to migration (Error: unknown)
|
|
15
|
+
*/
|
|
16
|
+
it.skip('Should be able to toggle agents panel', () => {
|
|
14
17
|
TTYGStubs.stubAgentListGet();
|
|
15
18
|
TTYGStubs.stubChatsListGet();
|
|
16
19
|
TTYGStubs.stubChatGet();
|
|
@@ -73,4 +76,21 @@ describe('TTYG agent list', () => {
|
|
|
73
76
|
{name: 'Databricks-biomarkers', repositoryId: 'biomarkers', isRepositoryDeleted: false}
|
|
74
77
|
]);
|
|
75
78
|
});
|
|
79
|
+
|
|
80
|
+
it('should filter agent actions based on compatibility', () => {
|
|
81
|
+
TTYGStubs.stubAgentListWithIncompatibleGet();
|
|
82
|
+
// When: I visit the ttyg page with incompatible agents
|
|
83
|
+
TTYGViewSteps.visit();
|
|
84
|
+
// Then: Only the delete action should be available for incompatible agents
|
|
85
|
+
TTYGViewSteps.expandAgentsSidebar();
|
|
86
|
+
TTYGViewSteps.openAgentActionMenu(0);
|
|
87
|
+
TTYGViewSteps.getDeleteAgentButton(0).should('be.visible');
|
|
88
|
+
TTYGViewSteps.getCloneAgentButton(0).should('not.exist');
|
|
89
|
+
TTYGViewSteps.getEditAgentButton(0).should('not.exist');
|
|
90
|
+
// And: All actions should be available for compatible agents
|
|
91
|
+
TTYGViewSteps.openAgentActionMenu(1);
|
|
92
|
+
TTYGViewSteps.getDeleteAgentButton(1).should('be.visible');
|
|
93
|
+
TTYGViewSteps.getCloneAgentButton(1).should('be.visible');
|
|
94
|
+
TTYGViewSteps.getEditAgentButton(1).should('be.visible');
|
|
95
|
+
});
|
|
76
96
|
});
|
|
@@ -29,6 +29,30 @@ describe('TTYG agent select menu', () => {
|
|
|
29
29
|
]);
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
+
it('should not allow selecting an incompatible agent from the menu', () => {
|
|
33
|
+
TTYGStubs.stubAgentListWithIncompatibleGet();
|
|
34
|
+
// Given: I have opened the ttyg page
|
|
35
|
+
TTYGViewSteps.visit();
|
|
36
|
+
// And: The agent dropdown menu is not visible
|
|
37
|
+
TTYGViewSteps.getAgentsDropdownMenu().should('not.be.visible');
|
|
38
|
+
// And: No agent is currently selected
|
|
39
|
+
TTYGViewSteps.getAgentsMenuToggleButton().should('contain', 'Select an agent');
|
|
40
|
+
|
|
41
|
+
// When: I open the agent selection menu
|
|
42
|
+
TTYGViewSteps.openAgentsMenu();
|
|
43
|
+
// Then: I should see that the first agent is marked as incompatible
|
|
44
|
+
TTYGViewSteps.getAgentFromMenu(0)
|
|
45
|
+
.trigger('mouseover')
|
|
46
|
+
.should('have.css', 'cursor', 'not-allowed');
|
|
47
|
+
|
|
48
|
+
// When: I attempt to select an incompatible agent from the menu
|
|
49
|
+
TTYGViewSteps.selectAgent(0);
|
|
50
|
+
// Then: The incompatible agent should not be selected
|
|
51
|
+
TTYGViewSteps.getAgentsMenuToggleButton().should('contain', 'Select an agent');
|
|
52
|
+
// And: The dropdown menu should remain open
|
|
53
|
+
TTYGViewSteps.getAgentsDropdownMenu().should('be.visible');
|
|
54
|
+
});
|
|
55
|
+
|
|
32
56
|
it('Should be able to select agent from the menu', () => {
|
|
33
57
|
TTYGStubs.stubAgentListGet();
|
|
34
58
|
// Given I have opened the ttyg page
|