graphdb-workbench-tests 3.0.2 → 3.1.0-TR2
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 +8 -4
- 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}/sparql-editor/yasr/table-plugin.spec.js +2 -1
- package/{integration → e2e-legacy}/cluster/edit-cluster-nodes-modal.spec.js +44 -0
- package/e2e-legacy/explore/class-hierarchy/class-hierarchy-with-selected-repository-without-class-hierarchy.spec.js +42 -0
- package/e2e-legacy/explore/class-hierarchy/class-hierarchy-with-selected-repository.spec.js +43 -0
- package/e2e-legacy/explore/class-hierarchy/class-hierarchy-without-selected-repository.spec.js +30 -0
- package/{integration/explore → e2e-legacy/explore/class-hierarchy}/class.hierarchy.spec.js +1 -1
- 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 +3 -3
- 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/e2e-legacy/explore/similarity-index/similarity-index-with-repository.spec.js +38 -0
- package/e2e-legacy/explore/similarity-index/similarity-index-without-repository.spec.js +21 -0
- package/{integration → e2e-legacy}/explore/visual-graph/graphs-config.spec.js +1 -6
- 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 +2 -7
- package/{integration → e2e-legacy}/graphql/create-graphql-endpoint.spec.js +0 -2
- package/{integration → e2e-legacy}/graphql/edit-graphql-enpoint.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 +4 -4
- 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 +1 -1
- package/{integration → e2e-legacy}/graphql/import-graphql-endpoint-definitions.spec.js +4 -7
- package/e2e-legacy/help/guides/guides-with-repository.spec.js +32 -0
- package/e2e-legacy/help/guides/guides-without-repository.spec.js +20 -0
- package/{integration → e2e-legacy/help}/guides/movies-interactive-guide.spec.js +3 -3
- package/{integration → e2e-legacy/help}/guides/star-wars-interactive-guide.js +3 -2
- package/e2e-legacy/help/rest-api-documentatio/rest-api-documentation-with-repository.spec.js +32 -0
- package/e2e-legacy/help/rest-api-documentatio/rest-api-documentation-without-repository.spec.js +20 -0
- package/e2e-legacy/help/system-information/system-information-with-repository.spec.js +32 -0
- package/e2e-legacy/help/system-information/system-information-without-repository.spec.js +20 -0
- package/{integration → e2e-legacy}/home/cookie-policy.spec.js +6 -7
- package/{integration → e2e-legacy}/home/documentation-link.spec.js +27 -23
- package/e2e-legacy/home/home-page-with-selected-repository.spec.js +69 -0
- package/e2e-legacy/home/home-page-without-repositories.spec.js +87 -0
- package/e2e-legacy/home/home-page-without-selected-repository.spec.js +59 -0
- package/{integration → e2e-legacy}/home/language-change.spec.js +2 -2
- package/e2e-legacy/home/rdf-resource-search.spec.js +149 -0
- package/e2e-legacy/home/view-resource-autocomplete.spec.js +65 -0
- package/{integration → e2e-legacy}/import/import-user-data-file-upload.spec.js +16 -10
- package/{integration → e2e-legacy}/import/import-user-data-text-snippet.spec.js +0 -2
- package/{integration → e2e-legacy}/import/import-user-data.spec.js +9 -2
- 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/e2e-legacy/license/license-with-repository.spec.js +113 -0
- package/e2e-legacy/license/license-without-repository.spec.js +103 -0
- package/{integration → e2e-legacy}/license/license.spec.js +4 -4
- package/e2e-legacy/monitor/backup-and-restore/backup-and-restore-with-repository.spec.js +36 -0
- package/e2e-legacy/monitor/backup-and-restore/backup-and-restore-without-repository.spec.js +25 -0
- package/{integration/monitor/monitor.backup-and-restore.spec.js → e2e-legacy/monitor/backup-and-restore/backup-and-restore.spec.js} +2 -2
- package/{integration → e2e-legacy}/monitor/global-operation-statuses-component.spec.js +12 -5
- package/e2e-legacy/monitor/query-and-updates/queries-and-updates-with-repository.spec.js +39 -0
- package/e2e-legacy/monitor/query-and-updates/queries-and-updates-without-repository.spec.js +21 -0
- package/{integration/monitor → e2e-legacy/monitor/system}/monitor.resources.spec.js +3 -2
- package/e2e-legacy/monitor/system/system-monitoring-with-repository.spec.js +32 -0
- package/e2e-legacy/monitor/system/system-monitoring-without-repository.spec.js +20 -0
- package/{integration → e2e-legacy}/repository/repositories.spec.js +34 -45
- package/{integration → e2e-legacy}/resource/resource.spec.js +16 -1
- package/e2e-legacy/setup/aclmanagement/acl-management-with-selected repository.spec.js +40 -0
- package/e2e-legacy/setup/aclmanagement/acl-management-without-repositories.spec.js +21 -0
- package/{integration → e2e-legacy}/setup/aclmanagement/create-rule.spec.js +1 -0
- package/e2e-legacy/setup/autocomplete/autocomplete-with-repository.spec.js +40 -0
- package/e2e-legacy/setup/autocomplete/autocomplete-without-repository.spec.js +27 -0
- package/{integration/setup → e2e-legacy/setup/autocomplete}/autocomplete.spec.js +2 -2
- package/e2e-legacy/setup/cluster/cluster-initial-state-with-cluster.spec.js +34 -0
- package/e2e-legacy/setup/cluster/cluster-initial-state-without-cluster.spec.js +25 -0
- package/e2e-legacy/setup/connectors/connectors-initial-state-with-selected-repository.spec.js +41 -0
- package/e2e-legacy/setup/connectors/connectors-initial-state-without-repositories.spec.js +21 -0
- package/e2e-legacy/setup/jdbc/jdbc-with-repository.spec.js +39 -0
- package/e2e-legacy/setup/jdbc/jdbc-without-repository.spec.js +27 -0
- package/e2e-legacy/setup/namespaces/namespaces-with-repository.spec.js +44 -0
- package/e2e-legacy/setup/namespaces/namespaces-without-repository.spec.js +27 -0
- package/{integration/setup → e2e-legacy/setup/namespaces}/namespaces.spec.js +6 -5
- package/e2e-legacy/setup/plugins/plugins-with-repository.spec.js +38 -0
- package/e2e-legacy/setup/plugins/plugins-without-repository.spec.js +28 -0
- package/{integration/setup → e2e-legacy/setup/plugins}/plugins.spec.js +3 -3
- package/e2e-legacy/setup/rdf-rank/rdf-rank-with-repository.spec.js +40 -0
- package/e2e-legacy/setup/rdf-rank/rdf-rank-without-repository.spec.js +30 -0
- package/{integration/setup → e2e-legacy/setup/rdf-rank}/rdf-rank.spec.js +1 -1
- package/e2e-legacy/setup/repositories/repositories-view-with-repositories.spec.js +40 -0
- package/e2e-legacy/setup/repositories/repositories-view-without-repositories.spec.js +28 -0
- package/e2e-legacy/setup/settings/my-settings-initial-state.spec.js +86 -0
- package/{integration/setup → e2e-legacy/setup/settings}/my-settings.spec.js +5 -75
- package/{integration/setup → e2e-legacy/setup/sparql-template}/sparql-template-create.js +16 -8
- package/e2e-legacy/setup/sparql-template/sparql-template-with-repository.spec.js +39 -0
- package/e2e-legacy/setup/sparql-template/sparql-template-without-repository.spec.js +29 -0
- package/{integration/setup → e2e-legacy/setup/sparql-template}/sparql-templates.spec.js +4 -4
- package/{integration/setup → e2e-legacy/setup/users-and-access}/user-and-access.spec.js +50 -15
- package/e2e-legacy/setup/users-and-access/users-and-access-initial-state.spec.js +25 -0
- package/{integration → e2e-legacy}/sparql-editor/actions/inferred-sameas.spec.js +3 -1
- package/{integration → e2e-legacy}/sparql-editor/saved-query/edit-query.spec.js +3 -3
- package/{integration → e2e-legacy}/sparql-editor/saved-query/readonly-query.spec.js +7 -13
- package/{integration → e2e-legacy}/sparql-editor/saved-query/share-query.spec.js +3 -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}/ttyg/agent-list.spec.js +20 -0
- package/{integration → e2e-legacy}/ttyg/agent-select-menu.spec.js +24 -0
- package/{integration → e2e-legacy}/ttyg/chat-panel.spec.js +29 -3
- package/{integration → e2e-legacy}/ttyg/create-chat.spec.js +3 -1
- package/{integration → e2e-legacy}/ttyg/edit-agent.spec.js +19 -9
- package/e2e-legacy/ttyg/ttyg-initial-state-with-configured-api-key.spec.js +46 -0
- package/e2e-legacy/ttyg/ttyg-initial-state-with-selected-repository.spec.js +43 -0
- package/e2e-legacy/ttyg/ttyg-initial-state-without-repositories.spec.js +21 -0
- package/e2e-legacy/ttyg/ttyg-permission.spec.js +66 -0
- package/{integration → e2e-legacy}/ttyg/ttyg-view.spec.js +1 -0
- package/fixtures/locale-en.json +22 -4
- package/fixtures/repositories/free-access.json +13 -0
- 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 +3557 -3815
- package/package.json +42 -42
- package/plugins/index.js +2 -2
- package/steps/application-steps.js +1 -1
- package/steps/base-steps.js +21 -0
- package/steps/class-views-steps.js +16 -0
- package/steps/cluster/cluster-page-steps.js +12 -2
- 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/explore/similarity-indexes-steps.js +12 -2
- package/steps/graphql/graphql-endpoint-management-steps.js +2 -2
- package/steps/guides/guide-steps.js +20 -1
- package/steps/home-steps.js +137 -48
- package/steps/import/import-steps.js +11 -15
- package/steps/import/import-user-data-steps.js +4 -0
- package/steps/language-selector-steps.js +2 -2
- package/steps/license-steps.js +91 -9
- package/steps/login-steps.js +3 -3
- package/steps/main-menu-steps.js +198 -13
- package/steps/modal-dialog-steps.js +20 -0
- package/steps/monitoring/backup-and-restore-steps.js +9 -3
- package/steps/monitoring/queries-and-updates-steps.js +20 -0
- package/steps/monitoring/system-monitoring-steps.js +40 -0
- package/steps/operations-statuses-component-steps.js +5 -10
- package/steps/rdf-resource-search-steps.js +55 -0
- package/steps/repository-selector-steps.js +3 -3
- package/steps/repository-steps.js +17 -12
- package/steps/resource/resource-steps.js +4 -0
- package/steps/rest-api-documentation-steps.js +15 -0
- package/steps/setup/autocomplete-steps.js +13 -6
- package/steps/setup/connectors-steps.js +19 -0
- package/steps/setup/jdbc-steps.js +18 -4
- package/steps/setup/namespace-steps.js +9 -6
- package/steps/setup/plugins-steps.js +11 -4
- package/steps/setup/rdf-rank-steps.js +22 -4
- package/steps/setup/settings-steps.js +82 -1
- package/steps/setup/sparql-templates-steps.js +19 -1
- package/steps/setup/user-and-access-steps.js +9 -1
- package/steps/system-information-steps.js +70 -0
- 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 +59 -8
- package/steps/visual-graph-steps.js +4 -0
- package/steps/widgets/active-repository-widget-steps.js +25 -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/browser-stubs.js +31 -0
- package/stubs/environment-stubs.js +9 -1
- package/stubs/license-stubs.js +51 -0
- package/stubs/repositories/repositories-stubs.js +8 -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 +20 -4
- package/Dockerfile +0 -11
- 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/language-selector.spec.js +0 -19
- package/integration/home/rdf-resource-search.spec.js +0 -177
- package/integration/home/view-resource-autocomplete.spec.js +0 -52
- package/integration/home/workbench.home.spec.js +0 -30
- package/integration/monitor/monitor.queries.spec.js +0 -31
- package/integration-flaky/setup/users-and-access/security-and-free-access.spec.js +0 -54
- 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-multi-region.spec.js +0 -0
- package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration-nodes.spec.js +0 -0
- package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration-properties.spec.js +0 -0
- package/{integration → e2e-legacy}/cluster/cluster-configuration/cluster-configuration.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}/explore/visual-graph/visual-graph-node-labels.spec.js +0 -0
- package/{integration → e2e-legacy}/graphql/activate-deactivate-graphql-endpoint.spec.js +0 -0
- package/{integration → e2e-legacy}/graphql/delete-graphql-endpoint.spec.js +0 -0
- package/{integration → e2e-legacy}/graphql/export-graphql-endpoint-definition.spec.js +0 -0
- package/{integration → e2e-legacy}/graphql/set-default-graphql-endpoint.spec.js +0 -0
- package/{integration/help → e2e-legacy/help/system-information}/system-information.spec.js +0 -0
- package/{integration → e2e-legacy}/home/create-repository.spec.js +0 -0
- package/{integration → e2e-legacy}/home/google-analytics.spec.js +0 -0
- package/{integration → e2e-legacy}/import/import-server-files-batch-operations.spec.js +0 -0
- package/{integration → e2e-legacy}/import/import-server-files.spec.js +0 -0
- package/{integration → e2e-legacy}/import/import-user-data-settings-dialog.spec.js +0 -0
- package/{integration → e2e-legacy}/import/import-user-data-url.spec.js +0 -0
- package/{integration → e2e-legacy}/import/import-view.spec.js +0 -0
- package/{integration → e2e-legacy}/repository/attach-remote-location.spec.js +1 -1
- /package/{integration → e2e-legacy}/repository/ontop-repository.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/edit-rule.spec.js +0 -0
- /package/{integration → e2e-legacy}/setup/aclmanagement/render-rules.spec.js +0 -0
- /package/{integration → e2e-legacy}/setup/aclmanagement/reorder-rules.spec.js +0 -0
- /package/{integration → e2e-legacy}/setup/aclmanagement/revert-rules.spec.js +0 -0
- /package/{integration → e2e-legacy}/setup/aclmanagement/scopes.spec.js +0 -0
- /package/{integration → e2e-legacy}/setup/aclmanagement/update-rules.spec.js +0 -0
- /package/{integration → e2e-legacy}/setup/connectors-lucene.spec.js +0 -0
- /package/{integration → e2e-legacy}/setup/jdbc/jdbc-create.spec.js +0 -0
- /package/{integration → e2e-legacy}/setup/jdbc/jdbc.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/internationalization.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/sparql-editor.spec.js +0 -0
- /package/{integration → e2e-legacy}/sparql-editor/yasgui-tabs.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/chat-list.spec.js +0 -0
- /package/{integration → e2e-legacy}/ttyg/clone-agent.spec.js +0 -0
- /package/{integration → e2e-legacy}/ttyg/create-agent.spec.js +0 -0
- /package/{integration → e2e-legacy}/ttyg/delete-agent.spec.js +0 -0
- /package/support/{index.js → e2e.js} +0 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {MainMenuSteps} from "../../../../steps/main-menu-steps";
|
|
2
|
+
import {GraphsOverviewSteps} from "../../../../steps/explore/graphs-overview-steps";
|
|
3
|
+
import HomeSteps from "../../../../steps/home-steps";
|
|
4
|
+
import {RepositoryErrorsWidgetSteps} from "../../../../steps/widgets/repository-errors-widget-steps";
|
|
5
|
+
|
|
6
|
+
describe('Initial state of the Graphs Overview view without a selected repository', () => {
|
|
7
|
+
|
|
8
|
+
it('Should display the correct initial state when navigating via URL', () => {
|
|
9
|
+
// When: I visit the Graphs Overview page via URL without a selected repository
|
|
10
|
+
GraphsOverviewSteps.visit();
|
|
11
|
+
// Then:
|
|
12
|
+
verifyInitialStateWithoutSelectedRepository();
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
it('Should display the correct initial state when navigating via the navigation bar', () => {
|
|
16
|
+
// When: I visit the Graphs Overview page via the navigation menu without a selected repository
|
|
17
|
+
HomeSteps.visit();
|
|
18
|
+
MainMenuSteps.clickOnGraphsOverview();
|
|
19
|
+
// Then:
|
|
20
|
+
verifyInitialStateWithoutSelectedRepository();
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
const verifyInitialStateWithoutSelectedRepository = () => {
|
|
24
|
+
RepositoryErrorsWidgetSteps.getWidget().should('be.visible');
|
|
25
|
+
GraphsOverviewSteps.getGraphsSearchInput().should('be.hidden');
|
|
26
|
+
GraphsOverviewSteps.getGraphsPaginator().should('be.hidden');
|
|
27
|
+
GraphsOverviewSteps.getClearRepositoryButton().should('be.hidden');
|
|
28
|
+
GraphsOverviewSteps.getExportRepositoryButton().should('be.hidden');
|
|
29
|
+
GraphsOverviewSteps.getDownloadAllButtons().should('be.hidden');
|
|
30
|
+
GraphsOverviewSteps.getResultsElement().should('be.hidden');
|
|
31
|
+
};
|
|
32
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import HomeSteps from "../../../steps/home-steps";
|
|
2
|
+
import {MainMenuSteps} from "../../../steps/main-menu-steps";
|
|
3
|
+
import {SimilarityIndexesSteps} from "../../../steps/explore/similarity-indexes-steps";
|
|
4
|
+
|
|
5
|
+
describe('Similarity indexes with selected repository', () => {
|
|
6
|
+
let repositoryId;
|
|
7
|
+
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
repositoryId = 'similarity-index-init-' + Date.now();
|
|
10
|
+
cy.createRepository({id: repositoryId});
|
|
11
|
+
cy.presetRepository(repositoryId);
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
afterEach(() => {
|
|
15
|
+
cy.deleteRepository(repositoryId);
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('Should display the correct initial state when navigating via URL', () => {
|
|
19
|
+
// Given, I visit the Similarity indexes page via URL with a repository selected
|
|
20
|
+
SimilarityIndexesSteps.visit();
|
|
21
|
+
// Then,
|
|
22
|
+
verifyInitialStateWithSelectedRepository();
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it('Should display the correct initial state when navigating via the navigation bar', () => {
|
|
26
|
+
// Given, I visit the Similarity indexes page via the navigation menu with a repository selected
|
|
27
|
+
HomeSteps.visit();
|
|
28
|
+
MainMenuSteps.clickOnSimilarity();
|
|
29
|
+
// Then,
|
|
30
|
+
verifyInitialStateWithSelectedRepository();
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
const verifyInitialStateWithSelectedRepository = () => {
|
|
34
|
+
|
|
35
|
+
SimilarityIndexesSteps.getExistingSimilarityIndexes().contains('Select one of your existing indexes to search in it');
|
|
36
|
+
SimilarityIndexesSteps.getCreateButton().should('be.visible');
|
|
37
|
+
};
|
|
38
|
+
})
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {ErrorSteps} from "../../../steps/error-steps";
|
|
2
|
+
import HomeSteps from "../../../steps/home-steps";
|
|
3
|
+
import {MainMenuSteps} from "../../../steps/main-menu-steps";
|
|
4
|
+
import {SimilarityIndexesSteps} from "../../../steps/explore/similarity-indexes-steps";
|
|
5
|
+
|
|
6
|
+
describe('Similarity indexes without selected repository', () => {
|
|
7
|
+
it('Should display the correct initial state when navigating via URL', () => {
|
|
8
|
+
// Given, I visit the Similarity indexes page via URL without a repository selected
|
|
9
|
+
SimilarityIndexesSteps.visit();
|
|
10
|
+
// Then,
|
|
11
|
+
ErrorSteps.verifyNoConnectedRepoMessage();
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
it('Should display the correct initial state when navigating via the navigation menu', () => {
|
|
15
|
+
// Given, I visit the Similarity indexes page via the navigation menu without a repository selected
|
|
16
|
+
HomeSteps.visit();
|
|
17
|
+
MainMenuSteps.clickOnSimilarity();
|
|
18
|
+
// Then,
|
|
19
|
+
ErrorSteps.verifyNoConnectedRepoMessage();
|
|
20
|
+
});
|
|
21
|
+
})
|
|
@@ -217,12 +217,7 @@ describe('Graphs config', () => {
|
|
|
217
217
|
VisualGraphSteps.getGraphConfigSearchPanelName().should('contain', graphConfigName);
|
|
218
218
|
});
|
|
219
219
|
|
|
220
|
-
it('Should create graph config with fixed node', {
|
|
221
|
-
retries: {
|
|
222
|
-
runMode: 1,
|
|
223
|
-
openMode: 0
|
|
224
|
-
}
|
|
225
|
-
}, () => {
|
|
220
|
+
it('Should create graph config with fixed node', () => {
|
|
226
221
|
cy.enableAutocomplete(repositoryId);
|
|
227
222
|
// Given I have started a create config wizard
|
|
228
223
|
startCreateConfigWizard();
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import {MainMenuSteps} from "../../../steps/main-menu-steps";
|
|
2
|
+
import HomeSteps from "../../../steps/home-steps";
|
|
3
|
+
import {VisualGraphSteps} from "../../../steps/visual-graph-steps";
|
|
4
|
+
|
|
5
|
+
describe('Visual Graph with selected repository', () => {
|
|
6
|
+
let repositoryId;
|
|
7
|
+
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
repositoryId = 'visual-graph-' + Date.now();
|
|
10
|
+
cy.createRepository({id: repositoryId});
|
|
11
|
+
cy.presetRepository(repositoryId);
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
afterEach(() => {
|
|
15
|
+
cy.deleteRepository(repositoryId);
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('Should render Visual Graph with selected repository via URL', () => {
|
|
19
|
+
// Given, I visit the Visual Graph page via URL and I have a selected repository
|
|
20
|
+
VisualGraphSteps.visit();
|
|
21
|
+
// Then, I expect to see the Visual Graph with the classes and relationships
|
|
22
|
+
verifyVisualGraphWithSelectedRepository();
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it('Should render Visual Graph with selected repository via navigation menu', () => {
|
|
26
|
+
// Given, I visit the Visual Graph page via navigation menu and I have a selected repository
|
|
27
|
+
HomeSteps.visit();
|
|
28
|
+
MainMenuSteps.clickOnVisualGraph();
|
|
29
|
+
// Then, I expect to see the Visual Graph with the classes and relationships
|
|
30
|
+
verifyVisualGraphWithSelectedRepository();
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
function verifyVisualGraphWithSelectedRepository() {
|
|
35
|
+
VisualGraphSteps.getSearchField().should('be.visible');
|
|
36
|
+
VisualGraphSteps.getGraphConfigurationsArea().should('be.visible');
|
|
37
|
+
VisualGraphSteps.getSavedGraphsArea().should('be.visible');
|
|
38
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {MainMenuSteps} from "../../../steps/main-menu-steps";
|
|
2
|
+
import HomeSteps from "../../../steps/home-steps";
|
|
3
|
+
import {ErrorSteps} from "../../../steps/error-steps";
|
|
4
|
+
import {VisualGraphSteps} from "../../../steps/visual-graph-steps";
|
|
5
|
+
|
|
6
|
+
describe('Visual Graph without selected repository', () => {
|
|
7
|
+
it('Should render Visual Graph without selected repository via URL', () => {
|
|
8
|
+
// Given, I visit the Visual Graph page via URL and I don't have any repositories
|
|
9
|
+
VisualGraphSteps.visit();
|
|
10
|
+
// Then
|
|
11
|
+
ErrorSteps.verifyNoConnectedRepoMessage();
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
it('Should render Visual Graph without selected repository via navigation menu', () => {
|
|
15
|
+
// Given, I visit the Visual Graph page via navigation menu and I don't have any repositories
|
|
16
|
+
HomeSteps.visit();
|
|
17
|
+
MainMenuSteps.clickOnVisualGraph();
|
|
18
|
+
// Then
|
|
19
|
+
ErrorSteps.verifyNoConnectedRepoMessage();
|
|
20
|
+
});
|
|
21
|
+
})
|
|
@@ -147,12 +147,7 @@ describe('Visual graph screen validation', () => {
|
|
|
147
147
|
});
|
|
148
148
|
});
|
|
149
149
|
|
|
150
|
-
it('Test search for a valid resource with links', {
|
|
151
|
-
retries: {
|
|
152
|
-
runMode: 1,
|
|
153
|
-
openMode: 0
|
|
154
|
-
}
|
|
155
|
-
}, () => {
|
|
150
|
+
it('Test search for a valid resource with links', () => {
|
|
156
151
|
VisualGraphSteps.openUSRegionUri();
|
|
157
152
|
// Check include inferred
|
|
158
153
|
VisualGraphSteps.toggleInferredStatements(true);
|
|
@@ -238,7 +233,7 @@ describe('Visual graph screen validation', () => {
|
|
|
238
233
|
cy.get('.incontext-search-rdf-resource input').should('be.visible');
|
|
239
234
|
});
|
|
240
235
|
|
|
241
|
-
|
|
236
|
+
it('Test expand collapsed node which has connections with double click', () => {
|
|
242
237
|
VisualGraphSteps.openUSRegionUri();
|
|
243
238
|
VisualGraphSteps.toggleInferredStatements(false);
|
|
244
239
|
|
|
@@ -245,7 +245,6 @@ describe('Graphql: create endpoint', () => {
|
|
|
245
245
|
// Then I should be on the generate endpoint step
|
|
246
246
|
CreateGraphqlEndpointSteps.getActiveStep().should('contain', 'Create');
|
|
247
247
|
CreateGraphqlEndpointSteps.getGenerateEndpointView().should('be.visible');
|
|
248
|
-
|
|
249
248
|
});
|
|
250
249
|
|
|
251
250
|
it('should be able to cancel the endpoint creation wizard', () => {
|
|
@@ -277,5 +276,4 @@ describe('Graphql: create endpoint', () => {
|
|
|
277
276
|
ModalDialogSteps.getDialog().should('not.exist');
|
|
278
277
|
cy.url().should('include', '/graphql/endpoints');
|
|
279
278
|
});
|
|
280
|
-
|
|
281
279
|
});
|
|
@@ -113,7 +113,7 @@ describe('Graphql: edit endpoint settings', () => {
|
|
|
113
113
|
"queryPrefix": null,
|
|
114
114
|
"mutationPrefix": null,
|
|
115
115
|
"sparqlFederatedServices": "{}",
|
|
116
|
-
"sparqlFederatedServicesPriority":
|
|
116
|
+
"sparqlFederatedServicesPriority": "Deployment configurations",
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
119
|
});
|
package/{integration → e2e-legacy}/graphql/filter-graphql-endpoints-on-management-view.spec.js
RENAMED
|
@@ -45,7 +45,7 @@ describe('GraphQL endpoints filtering', () => {
|
|
|
45
45
|
GraphqlEndpointManagementSteps.getEndpointsInfo().should('have.length', 3);
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
it
|
|
48
|
+
it('should render no results banner when all endpoints are filtered', () => {
|
|
49
49
|
// Given I have a repository with active GraphQL endpoints
|
|
50
50
|
// When I visit the endpoint management view
|
|
51
51
|
GraphqlEndpointManagementSteps.visit();
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {ErrorSteps} from "../../steps/error-steps";
|
|
2
|
+
import {GraphqlEndpointManagementSteps} from "../../steps/graphql/graphql-endpoint-management-steps";
|
|
3
|
+
import HomeSteps from "../../steps/home-steps";
|
|
4
|
+
import {MainMenuSteps} from "../../steps/main-menu-steps";
|
|
5
|
+
|
|
6
|
+
describe('GraphQl endpoint management without selected repository', () => {
|
|
7
|
+
it('Should render GraphQL endpoint management page without selected repository via URL', () => {
|
|
8
|
+
// Given, I visit the GraphQL endpoint management page via URL and I haven't selected a repository
|
|
9
|
+
GraphqlEndpointManagementSteps.visit();
|
|
10
|
+
// Then
|
|
11
|
+
ErrorSteps.verifyNoConnectedRepoMessage();
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
it('Should render GraphQL endpoint management without selected repository via navigation menu', () => {
|
|
15
|
+
// Given, I visit the GraphQL endpoint management page via navigation menu and I haven't selected a repository'
|
|
16
|
+
HomeSteps.visit();
|
|
17
|
+
MainMenuSteps.clickOnEndpointManagement();
|
|
18
|
+
// Then
|
|
19
|
+
ErrorSteps.verifyNoConnectedRepoMessage();
|
|
20
|
+
});
|
|
21
|
+
})
|
|
@@ -69,6 +69,8 @@ describe('GraphQL endpoints management', () => {
|
|
|
69
69
|
// Given I have a repository with active GraphQL endpoints
|
|
70
70
|
// When I visit the endpoint management view
|
|
71
71
|
GraphqlEndpointManagementSteps.visit();
|
|
72
|
+
// And I toggle the 3rd endpoint's active state to inactive
|
|
73
|
+
GraphqlEndpointManagementSteps.toggleEndpointActiveState(2);
|
|
72
74
|
// Then I should see the endpoints info
|
|
73
75
|
GraphqlEndpointManagementSteps.getEndpointTable().within(() => {
|
|
74
76
|
cy.get('thead th').should('have.length', 10);
|
|
@@ -85,7 +87,6 @@ describe('GraphQL endpoints management', () => {
|
|
|
85
87
|
GraphqlEndpointManagementSteps.getEndpointsInfo().should('have.length', 3);
|
|
86
88
|
GraphqlEndpointManagementSteps.verifyEndpointInfo([
|
|
87
89
|
{
|
|
88
|
-
status: 'deleted',
|
|
89
90
|
id: 'swapi',
|
|
90
91
|
label: 'Ontotext Star Wars Ontology',
|
|
91
92
|
description: '',
|
|
@@ -96,7 +97,6 @@ describe('GraphQL endpoints management', () => {
|
|
|
96
97
|
properties: 68
|
|
97
98
|
},
|
|
98
99
|
{
|
|
99
|
-
status: 'deleted',
|
|
100
100
|
id: 'swapi-planets',
|
|
101
101
|
label: 'Star Wars planets API',
|
|
102
102
|
description: '',
|
|
@@ -107,12 +107,12 @@ describe('GraphQL endpoints management', () => {
|
|
|
107
107
|
properties: 10
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
|
-
status:
|
|
110
|
+
status: "deleted",
|
|
111
111
|
id: 'swapi-species',
|
|
112
112
|
label: 'Star Wars species API',
|
|
113
113
|
description: '',
|
|
114
114
|
default: false,
|
|
115
|
-
active:
|
|
115
|
+
active: false,
|
|
116
116
|
modified: ApplicationSteps.getCurrentDate(),
|
|
117
117
|
types: 2,
|
|
118
118
|
properties: 17
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {GraphqlEndpointManagementSteps} from "../../steps/graphql/graphql-endpoint-management-steps";
|
|
2
|
+
import {MainMenuSteps} from "../../steps/main-menu-steps";
|
|
3
|
+
import HomeSteps from "../../steps/home-steps";
|
|
4
|
+
|
|
5
|
+
describe('GraphQL endpoint management with endpoints', () => {
|
|
6
|
+
let repositoryId;
|
|
7
|
+
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
repositoryId = 'graphql-endpoint-management-' + Date.now();
|
|
10
|
+
cy.createRepository({id: repositoryId});
|
|
11
|
+
cy.presetRepository(repositoryId);
|
|
12
|
+
cy.importServerFile(repositoryId, 'swapi-dataset.ttl');
|
|
13
|
+
cy.uploadGraphqlSchema(repositoryId, 'graphql/soml/swapi-schema.yaml', 'swapi');
|
|
14
|
+
cy.uploadGraphqlSchema(repositoryId, 'graphql/soml/swapi-schema-film-restricted.yaml', 'swapi');
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
afterEach(() => {
|
|
18
|
+
cy.deleteRepository(repositoryId);
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('Should render GraphQL endpoint management with endpoints via URL', () => {
|
|
22
|
+
// Given, I visit the GraphQL endpoint management page via URL and I have endpoints
|
|
23
|
+
GraphqlEndpointManagementSteps.visit();
|
|
24
|
+
// Then, I expect to see the GraphQL endpoint management page
|
|
25
|
+
validateGraphQlEndpointManagementPageWithEndpoints();
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
it('Should render GraphQL endpoint management with endpoints via navigation menu', () => {
|
|
29
|
+
// Given, I visit the GraphQL endpoint management page via navigation menu and I have endpoints
|
|
30
|
+
HomeSteps.visit();
|
|
31
|
+
MainMenuSteps.clickOnEndpointManagement();
|
|
32
|
+
// Then, I expect to see the GraphQL endpoint management page
|
|
33
|
+
validateGraphQlEndpointManagementPageWithEndpoints();
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
function validateGraphQlEndpointManagementPageWithEndpoints() {
|
|
38
|
+
GraphqlEndpointManagementSteps.getCreateEndpointButton().should('be.visible');
|
|
39
|
+
GraphqlEndpointManagementSteps.getImportEndpointSchemaDefinitionButton().should('be.visible');
|
|
40
|
+
GraphqlEndpointManagementSteps.getEndpointFilterField().should('be.visible');
|
|
41
|
+
GraphqlEndpointManagementSteps.getEndpointTable().should('be.visible');
|
|
42
|
+
GraphqlEndpointManagementSteps.getNoEndpointsInRepositoryBanner().should('not.exist');
|
|
43
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import HomeSteps from "../../steps/home-steps";
|
|
2
|
+
import {MainMenuSteps} from "../../steps/main-menu-steps";
|
|
3
|
+
import {GraphqlEndpointManagementSteps} from "../../steps/graphql/graphql-endpoint-management-steps";
|
|
4
|
+
|
|
5
|
+
describe('GraphQL endpoint management with selected repository', () => {
|
|
6
|
+
let repositoryId;
|
|
7
|
+
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
repositoryId = 'graphql-endpoint-management-' + Date.now();
|
|
10
|
+
cy.createRepository({id: repositoryId});
|
|
11
|
+
cy.presetRepository(repositoryId);
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
afterEach(() => {
|
|
15
|
+
cy.deleteRepository(repositoryId);
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('Should render GraphQL endpoint management with selected repository via URL', () => {
|
|
19
|
+
// Given, I visit the GraphQL endpoint management page via URL and I have a selected repository
|
|
20
|
+
GraphqlEndpointManagementSteps.visit();
|
|
21
|
+
// Then, I expect to see the GraphQL endpoint management page
|
|
22
|
+
validateNoEndpointsGraphQlEndpointManagementPage();
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it('Should render GraphQL endpoint management with selected repository via navigation menu', () => {
|
|
26
|
+
// Given, I visit the GraphQL endpoint management page via navigation menu and I have a selected repository'
|
|
27
|
+
HomeSteps.visit();
|
|
28
|
+
MainMenuSteps.clickOnEndpointManagement();
|
|
29
|
+
// Then, I expect to see the GraphQL endpoint management page
|
|
30
|
+
validateNoEndpointsGraphQlEndpointManagementPage()
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
function validateNoEndpointsGraphQlEndpointManagementPage() {
|
|
35
|
+
GraphqlEndpointManagementSteps.getCreateEndpointButton().should('be.visible');
|
|
36
|
+
GraphqlEndpointManagementSteps.getImportEndpointSchemaDefinitionButton().should('be.visible');
|
|
37
|
+
GraphqlEndpointManagementSteps.getNoEndpointsInRepositoryBanner().should('be.visible');
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {MainMenuSteps} from "../../steps/main-menu-steps";
|
|
2
|
+
import HomeSteps from "../../steps/home-steps";
|
|
3
|
+
import {GraphqlPlaygroundSteps} from "../../steps/graphql/graphql-playground-steps";
|
|
4
|
+
|
|
5
|
+
describe('GraphQL playground with endpoints', () => {
|
|
6
|
+
let repositoryId;
|
|
7
|
+
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
repositoryId = 'graphql-playground-' + Date.now();
|
|
10
|
+
cy.createRepository({id: repositoryId});
|
|
11
|
+
cy.presetRepository(repositoryId);
|
|
12
|
+
cy.importServerFile(repositoryId, 'swapi-dataset.ttl');
|
|
13
|
+
cy.uploadGraphqlSchema(repositoryId, 'graphql/soml/swapi-schema.yaml', 'swapi');
|
|
14
|
+
cy.uploadGraphqlSchema(repositoryId, 'graphql/soml/swapi-schema-film-restricted.yaml', 'swapi');
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
afterEach(() => {
|
|
18
|
+
cy.deleteRepository(repositoryId);
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('Should render GraphQL playground with endpoints via URL', () => {
|
|
22
|
+
// Given, I visit the GraphQL playground page via URL and I have endpoints
|
|
23
|
+
GraphqlPlaygroundSteps.visit();
|
|
24
|
+
// Then, I expect to see the GraphQL playground page
|
|
25
|
+
validateGraphQlPlaygroundWithEndpoints();
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
it('Should render GraphQL playground with endpoints via navigation menu', () => {
|
|
29
|
+
// Given, I visit the GraphQL playground page via navigation menu and I have endpoints
|
|
30
|
+
HomeSteps.visit();
|
|
31
|
+
MainMenuSteps.clickOnGraphQLPlayground();
|
|
32
|
+
// Then, I expect to see the GraphQL playground page
|
|
33
|
+
validateGraphQlPlaygroundWithEndpoints();
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
function validateGraphQlPlaygroundWithEndpoints() {
|
|
38
|
+
GraphqlPlaygroundSteps.getEndpointsSelectMenu().should('be.visible');
|
|
39
|
+
GraphqlPlaygroundSteps.getPlayground().should('be.visible');
|
|
40
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import HomeSteps from "../../steps/home-steps";
|
|
2
|
+
import {MainMenuSteps} from "../../steps/main-menu-steps";
|
|
3
|
+
import {GraphqlPlaygroundSteps} from "../../steps/graphql/graphql-playground-steps";
|
|
4
|
+
|
|
5
|
+
describe('GraphQL playground with selected repository', () => {
|
|
6
|
+
let repositoryId;
|
|
7
|
+
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
repositoryId = 'graphql-playground-' + Date.now();
|
|
10
|
+
cy.createRepository({id: repositoryId});
|
|
11
|
+
cy.presetRepository(repositoryId);
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
afterEach(() => {
|
|
15
|
+
cy.deleteRepository(repositoryId);
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('Should render GraphQL playground with selected repository via URL', () => {
|
|
19
|
+
// Given, I visit the GraphQL playground page via URL and I have a selected repository
|
|
20
|
+
GraphqlPlaygroundSteps.visit();
|
|
21
|
+
// Then, I expect to see the GraphQL no schemas alert, because I don't have any endpoints
|
|
22
|
+
validateSelectedRepository();
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it('Should render GraphQL playground with selected repository via navigation menu', () => {
|
|
26
|
+
// Given, I visit the GraphQL playground page via navigation menu and I have a selected repository'
|
|
27
|
+
HomeSteps.visit();
|
|
28
|
+
MainMenuSteps.clickOnGraphQLPlayground();
|
|
29
|
+
// Then, I expect to see the GraphQL no schemas alert, because I don't have any endpoints
|
|
30
|
+
validateSelectedRepository();
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
function validateSelectedRepository() {
|
|
35
|
+
GraphqlPlaygroundSteps.getNoSchemasAlert()
|
|
36
|
+
.should('be.visible')
|
|
37
|
+
.and('contain', 'No active endpoints found in the current repository. Manage the GraphQL schemas here');
|
|
38
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {GraphqlPlaygroundSteps} from "../../steps/graphql/graphql-playground-steps";
|
|
2
|
+
import {ErrorSteps} from "../../steps/error-steps";
|
|
3
|
+
import HomeSteps from "../../steps/home-steps";
|
|
4
|
+
import {MainMenuSteps} from "../../steps/main-menu-steps";
|
|
5
|
+
|
|
6
|
+
describe('GraphQl playground without selected repository', () => {
|
|
7
|
+
it('Should render GraphQL playground without selected repository via URL', () => {
|
|
8
|
+
// Given, I visit the GraphQL playground page via URL and I don't have any repositories
|
|
9
|
+
GraphqlPlaygroundSteps.visit();
|
|
10
|
+
// Then
|
|
11
|
+
ErrorSteps.verifyNoConnectedRepoMessage();
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
it('Should render GraphQL playground without selected repository via navigation menu', () => {
|
|
15
|
+
// Given, I visit the GraphQL playground page via navigation menu and I don't have any repositories'
|
|
16
|
+
HomeSteps.visit();
|
|
17
|
+
MainMenuSteps.clickOnGraphQLPlayground();
|
|
18
|
+
// Then
|
|
19
|
+
ErrorSteps.verifyNoConnectedRepoMessage();
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
|
|
@@ -87,7 +87,7 @@ describe('GraphQL Playground', () => {
|
|
|
87
87
|
GraphiQLEditorToolsSteps.getGraphiQLEditorTabButton(1).contains('Headers');
|
|
88
88
|
|
|
89
89
|
// When: I change the language.
|
|
90
|
-
LanguageSelectorSteps.
|
|
90
|
+
LanguageSelectorSteps.switchToFr();
|
|
91
91
|
// Then: I expect to see GraphQL playground translated.
|
|
92
92
|
GraphiQLEditorToolsSteps.getGraphiQLEditorTabButton(1).contains('En-têtes');
|
|
93
93
|
});
|
|
@@ -73,7 +73,6 @@ describe('Graphql: import endpoint definitions', () => {
|
|
|
73
73
|
|
|
74
74
|
GraphqlEndpointManagementSteps.verifyEndpointInfo([
|
|
75
75
|
{
|
|
76
|
-
status: 'deleted',
|
|
77
76
|
id: 'swapi',
|
|
78
77
|
label: 'Ontotext Star Wars Ontology',
|
|
79
78
|
description: '',
|
|
@@ -86,7 +85,10 @@ describe('Graphql: import endpoint definitions', () => {
|
|
|
86
85
|
]);
|
|
87
86
|
});
|
|
88
87
|
|
|
89
|
-
|
|
88
|
+
/**
|
|
89
|
+
* TODO Fixme broken due migration (Error unknown)
|
|
90
|
+
*/
|
|
91
|
+
it.skip('should be able to import broken endpoint definition', () => {
|
|
90
92
|
visitAndOpenImportModal();
|
|
91
93
|
// When I select the file to upload
|
|
92
94
|
ImportEndpointDefinitionModalSteps.selectFile(brokenSwapiDefinitionPath);
|
|
@@ -167,7 +169,6 @@ describe('Graphql: import endpoint definitions', () => {
|
|
|
167
169
|
GraphqlEndpointManagementSteps.getEndpointsInfo().should('have.length', 3);
|
|
168
170
|
GraphqlEndpointManagementSteps.verifyEndpointInfo([
|
|
169
171
|
{
|
|
170
|
-
status: 'deleted',
|
|
171
172
|
id: 'swapi',
|
|
172
173
|
label: 'Ontotext Star Wars Ontology',
|
|
173
174
|
description: '',
|
|
@@ -178,7 +179,6 @@ describe('Graphql: import endpoint definitions', () => {
|
|
|
178
179
|
properties: 68
|
|
179
180
|
},
|
|
180
181
|
{
|
|
181
|
-
status: 'deleted',
|
|
182
182
|
id: 'swapi-planets',
|
|
183
183
|
label: 'Star Wars planets API',
|
|
184
184
|
description: '',
|
|
@@ -189,7 +189,6 @@ describe('Graphql: import endpoint definitions', () => {
|
|
|
189
189
|
properties: 10
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
|
-
status: 'deleted',
|
|
193
192
|
id: 'swapi-species',
|
|
194
193
|
label: 'Star Wars species API',
|
|
195
194
|
description: '',
|
|
@@ -233,7 +232,6 @@ describe('Graphql: import endpoint definitions', () => {
|
|
|
233
232
|
GraphqlEndpointManagementSteps.getEndpointsInfo().should('have.length', 2);
|
|
234
233
|
GraphqlEndpointManagementSteps.verifyEndpointInfo([
|
|
235
234
|
{
|
|
236
|
-
status: 'deleted',
|
|
237
235
|
id: 'swapi-planets',
|
|
238
236
|
label: 'Star Wars planets API',
|
|
239
237
|
description: '',
|
|
@@ -244,7 +242,6 @@ describe('Graphql: import endpoint definitions', () => {
|
|
|
244
242
|
properties: 10
|
|
245
243
|
},
|
|
246
244
|
{
|
|
247
|
-
status: 'deleted',
|
|
248
245
|
id: 'swapi-species',
|
|
249
246
|
label: 'Star Wars species API',
|
|
250
247
|
description: '',
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import HomeSteps from "../../../steps/home-steps";
|
|
2
|
+
import {MainMenuSteps} from "../../../steps/main-menu-steps";
|
|
3
|
+
import {GuideSteps} from "../../../steps/guides/guide-steps";
|
|
4
|
+
|
|
5
|
+
describe('Interactive guides with selected repository', () => {
|
|
6
|
+
let repositoryId;
|
|
7
|
+
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
repositoryId = 'interactive-guides-init-' + Date.now();
|
|
10
|
+
cy.createRepository({id: repositoryId});
|
|
11
|
+
cy.presetRepository(repositoryId);
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
afterEach(() => {
|
|
15
|
+
cy.deleteRepository(repositoryId);
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('Should display the correct initial state when navigating via URL', () => {
|
|
19
|
+
// Given, I visit the Interactive guides page via URL with a repository selected
|
|
20
|
+
GuideSteps.visit();
|
|
21
|
+
// Then,
|
|
22
|
+
GuideSteps.verifyInitialState();
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it('Should display the correct initial state when navigating via the navigation bar', () => {
|
|
26
|
+
// Given, I visit the Interactive guides page via the navigation menu with a repository selected
|
|
27
|
+
HomeSteps.visit();
|
|
28
|
+
MainMenuSteps.clickOnInteractiveGuides();
|
|
29
|
+
// Then,
|
|
30
|
+
GuideSteps.verifyInitialState();
|
|
31
|
+
});
|
|
32
|
+
})
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import HomeSteps from "../../../steps/home-steps";
|
|
2
|
+
import {MainMenuSteps} from "../../../steps/main-menu-steps";
|
|
3
|
+
import {GuideSteps} from "../../../steps/guides/guide-steps";
|
|
4
|
+
|
|
5
|
+
describe('Interactive guides without selected repository', () => {
|
|
6
|
+
it('Should display the correct initial state when navigating via URL', () => {
|
|
7
|
+
// Given, I visit the Interactive guides page via URL without a repository selected
|
|
8
|
+
GuideSteps.visit();
|
|
9
|
+
// Then,
|
|
10
|
+
GuideSteps.verifyInitialState();
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
it('Should display the correct initial state when navigating via the navigation menu', () => {
|
|
14
|
+
// Given, I visit the Interactive guides page via the navigation menu without a repository selected
|
|
15
|
+
HomeSteps.visit();
|
|
16
|
+
MainMenuSteps.clickOnInteractiveGuides();
|
|
17
|
+
// Then,
|
|
18
|
+
GuideSteps.verifyInitialState();
|
|
19
|
+
});
|
|
20
|
+
})
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {GuideSteps} from "
|
|
2
|
-
import {MoviesGuideSteps} from "
|
|
1
|
+
import {GuideSteps} from "../../../steps/guides/guide-steps";
|
|
2
|
+
import {MoviesGuideSteps} from "../../../steps/guides/movies-guide-steps";
|
|
3
3
|
|
|
4
4
|
const MOVIES_FILE_FOR_IMPORT = 'movies.ttl';
|
|
5
|
+
|
|
5
6
|
describe('Interactive guides', () => {
|
|
6
7
|
|
|
7
8
|
let repositoryId;
|
|
@@ -21,7 +22,6 @@ describe('Interactive guides', () => {
|
|
|
21
22
|
|
|
22
23
|
context('Describes "Movies" interactive guide', () => {
|
|
23
24
|
it('Tests movies interactive guide using "Next" button to the end', () => {
|
|
24
|
-
|
|
25
25
|
const stepAssertions = [
|
|
26
26
|
{assert: MoviesGuideSteps.assertExploreClassHierarchyStep1},
|
|
27
27
|
{assert: MoviesGuideSteps.assertExploreClassHierarchyStep2},
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {GuideSteps} from "
|
|
2
|
-
import {StarWarsGuideSteps} from "
|
|
1
|
+
import {GuideSteps} from "../../../steps/guides/guide-steps";
|
|
2
|
+
import {StarWarsGuideSteps} from "../../../steps/guides/star-wars-guide-steps";
|
|
3
3
|
|
|
4
4
|
const STAR_WARS_FILE_FOR_IMPORT = 'starwars.ttl';
|
|
5
|
+
|
|
5
6
|
describe('Describes "Starwars" interactive guide', () => {
|
|
6
7
|
|
|
7
8
|
let repositoryId;
|