graphdb-workbench-tests 4.0.0-TR2 → 4.0.0-TR21
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/e2e-flaky/import/import-server-files-operations.spec.js +8 -30
- package/e2e-flaky/import/import-user-data-batch-operations.spec.js +7 -7
- package/e2e-flaky/import/import-user-data-url.spec.js +1 -1
- package/e2e-flaky/sparql-editor/lucene-connector.spec.js +1 -1
- package/e2e-legacy/cluster/cluster-configuration/cluster-configuration-multi-region.spec.js +27 -0
- package/e2e-legacy/cluster/edit-cluster-nodes-modal.spec.js +1 -1
- package/e2e-legacy/explore/graphs-overview/graphs.overview.spec.js +31 -2
- package/e2e-legacy/explore/visual-graph/visual.graph.spec.js +35 -4
- package/e2e-legacy/graph-navigator/graph-navigator-restrictions.spec.js +216 -0
- package/e2e-legacy/graph-navigator/graph-navigator.spec.js +447 -0
- package/e2e-legacy/guides/import-rdf-file/confirm-duplicate-rdf-file.spec.js +1 -1
- package/e2e-legacy/guides/main-menu/main-menu-guide.spec.js +6 -14
- package/e2e-legacy/guides/ttyg/configure-agent/configure-agent-guide.spec.js +26 -30
- package/e2e-legacy/guides/ttyg/edit-agent/edit-ttyg-agent-guide.spec.js +12 -20
- package/e2e-legacy/home/home-page-without-repositories.spec.js +3 -1
- package/e2e-legacy/home/home-page-without-selected-repository.spec.js +2 -1
- package/e2e-legacy/import/import-server-files-batch-operations.spec.js +38 -5
- package/e2e-legacy/import/import-server-files.spec.js +39 -23
- package/e2e-legacy/import/import-user-data-file-upload.spec.js +47 -22
- package/e2e-legacy/import/import-user-data-settings-dialog.spec.js +81 -10
- package/e2e-legacy/import/import-user-data-text-snippet.spec.js +6 -45
- package/e2e-legacy/import/import-user-data-url.spec.js +9 -5
- package/e2e-legacy/import/import-view.spec.js +2 -2
- package/e2e-legacy/monitor/global-operation-statuses-component.spec.js +13 -17
- package/e2e-legacy/rdf-version/rdf-version-accept-header.spec.js +145 -0
- package/e2e-legacy/repository/attach-remote-location.spec.js +7 -15
- package/e2e-legacy/repository/fedx-deprecation.spec.js +178 -0
- package/e2e-legacy/repository/ontop-repository.spec.js +25 -34
- package/e2e-legacy/repository/rename-repository-restrictions.spec.js +5 -1
- package/e2e-legacy/repository/repositories.spec.js +3 -3
- package/e2e-legacy/repository/repository-picker-tooltip.spec.js +72 -0
- package/e2e-legacy/repository/repository-selector-tooltip.spec.js +55 -0
- package/e2e-legacy/resource/resource.spec.js +177 -40
- package/e2e-legacy/setup/aclmanagement/create-rule.spec.js +14 -25
- package/e2e-legacy/setup/aclmanagement/delete-rule.spec.js +6 -6
- package/e2e-legacy/setup/aclmanagement/edit-rule.spec.js +15 -15
- package/e2e-legacy/setup/aclmanagement/render-rules.spec.js +1 -1
- package/e2e-legacy/setup/aclmanagement/reorder-rules.spec.js +2 -2
- package/e2e-legacy/setup/aclmanagement/revert-rules.spec.js +2 -2
- package/e2e-legacy/setup/aclmanagement/update-rules.spec.js +3 -3
- package/e2e-legacy/setup/aclmanagement/validate-uri.spec.js +152 -0
- package/e2e-legacy/setup/connectors/connectors-initial-state-with-selected-repository.spec.js +1 -1
- package/e2e-legacy/setup/plugins/plugins-without-repository.spec.js +1 -1
- package/e2e-legacy/setup/settings/my-settings.spec.js +25 -15
- package/e2e-legacy/setup/users-and-access/user-and-access.spec.js +34 -25
- package/e2e-legacy/sparql-editor/saved-query/abort-query.spec.js +1 -1
- package/e2e-legacy/sparql-editor/sparql-editor-navigation.spec.js +219 -0
- package/e2e-legacy/sparql-editor/yasgui-tabs.spec.js +1 -1
- package/e2e-legacy/sparql-editor/yasr/download-as.spec.js +4 -7
- package/e2e-legacy/sparql-editor/yasr/toolbar/visual-graph-button.spec.js +8 -8
- package/e2e-legacy/ttyg/chat-list.spec.js +1 -1
- package/e2e-legacy/ttyg/create-agent.spec.js +6 -4
- package/e2e-legacy/ttyg/create-chat.spec.js +1 -1
- package/e2e-legacy/ttyg/edit-agent.spec.js +57 -0
- package/e2e-legacy/ttyg/ttyg-initial-state-with-configured-api-key.spec.js +1 -1
- package/e2e-legacy/ttyg/ttyg-initial-state-with-selected-repository.spec.js +1 -1
- package/e2e-legacy/ttyg/ttyg-initial-state-without-repositories.spec.js +1 -1
- package/e2e-security/explore/visual-graph/graph-config-owner-actions.spec.js +52 -0
- package/e2e-security/setup/home/cookie-policy.spec.js +4 -0
- package/e2e-security/setup/license/license-loading.spec.js +57 -0
- package/e2e-security/setup/license/license-logout.spec.js +38 -0
- package/e2e-security/setup/users-and-access/create-user-permissions.spec.js +1 -1
- package/e2e-security/setup/users-and-access/repo-admin-role.spec.js +1 -1
- package/e2e-security/setup/users-and-access/user-and-access.spec.js +0 -1
- package/fixtures/cluster/3-nodes-cluster-group-status-no-leader.json +41 -0
- package/fixtures/cluster/cluster-config-with-tag.json +17 -0
- package/fixtures/connectors/get-connectors.json +0 -1
- package/fixtures/graph-navigator/graph-navigator-settings-invalid.ttl +149 -0
- package/fixtures/graph-navigator/graph-navigator-settings.ttl +148 -0
- package/fixtures/graphdb-import/wine.rdf +279 -285
- package/npm-shrinkwrap.json +1283 -1643
- package/package.json +10 -1
- package/steps/base-steps.js +4 -0
- package/steps/cluster/cluster-configuration-steps.js +4 -0
- package/steps/cookie-policy/cookie-consent-banner-steps.js +2 -2
- package/steps/error-steps.js +2 -2
- package/steps/explore/graphs-overview-steps.js +44 -0
- package/steps/graph-navigator-steps.js +145 -0
- package/steps/header-steps.js +5 -1
- package/steps/home-steps.js +3 -6
- package/steps/import/import-server-files-steps.js +8 -0
- package/steps/import/import-settings-dialog-steps.js +16 -0
- package/steps/import/import-steps.js +88 -17
- package/steps/import/import-test-constants.js +1 -1
- package/steps/import/import-user-data-steps.js +24 -24
- package/steps/language-selector-steps.js +4 -0
- package/steps/layout-steps.js +6 -0
- package/steps/login-steps.js +7 -3
- package/steps/main-menu-steps.js +14 -14
- package/steps/ontop-repository-steps.js +4 -0
- package/steps/page-restrictions-steps.js +24 -0
- package/steps/repositories/attach-repository-steps.js +2 -10
- package/steps/repository-picker-list-steps.js +58 -0
- package/steps/repository-selector-steps.js +20 -0
- package/steps/repository-steps.js +48 -9
- package/steps/resource/resource-steps.js +76 -9
- package/steps/setup/acl-management-steps.js +4 -24
- package/steps/setup/settings-steps.js +42 -0
- package/steps/setup/user-and-access-steps.js +18 -14
- package/steps/toaster-steps.js +4 -0
- package/steps/ttyg/ttyg-view-steps.js +1 -14
- package/steps/visual-graph-steps.js +8 -0
- package/steps/widgets/repository-errors-widget-steps.js +15 -2
- package/steps/yasgui/yasqe-steps.js +3 -1
- package/steps/yasgui/yasr-steps.js +8 -0
- package/stubs/browser-stubs.js +40 -0
- package/stubs/cluster/cluster-stubs.js +15 -1
- package/stubs/graph-navigator-stubs.js +27 -0
- package/stubs/license-stubs.js +11 -3
- package/stubs/repositories/repositories-stubs.js +44 -0
- package/stubs/yasgui/query-stubs.js +5 -0
- package/support/visual-graph-commands.js +19 -0
- package/e2e-legacy/home/solr-banner/solr-banner.spec.js +0 -137
- package/fixtures/graphdb-import/test-trigstar.trigs +0 -32
- package/fixtures/graphdb-import/test_turtlestar.ttls +0 -6
- package/fixtures/graphdb-import/turtlestar-data.ttls +0 -77
- package/steps/deprecation-banner/deprecation-banner-steps.js +0 -13
- package/steps/deprecation-steps.js +0 -13
|
@@ -8,6 +8,7 @@ import {LoginSteps} from '../../../steps/login-steps';
|
|
|
8
8
|
import {MainMenuSteps} from '../../../steps/main-menu-steps';
|
|
9
9
|
import {SecurityStubs} from '../../../stubs/security-stubs.js';
|
|
10
10
|
import {RepositorySteps} from '../../../steps/repository-steps.js';
|
|
11
|
+
import {LayoutSteps} from '../../../steps/layout-steps';
|
|
11
12
|
|
|
12
13
|
describe('User and Access', () => {
|
|
13
14
|
|
|
@@ -18,7 +19,7 @@ describe('User and Access', () => {
|
|
|
18
19
|
const DEFAULT_ADMIN_PASSWORD = 'root';
|
|
19
20
|
|
|
20
21
|
context('User and access management', () => {
|
|
21
|
-
const user = 'user';
|
|
22
|
+
const user = 'user' + Date.now();
|
|
22
23
|
let repoName;
|
|
23
24
|
|
|
24
25
|
before(() => {
|
|
@@ -128,7 +129,6 @@ describe('User and Access', () => {
|
|
|
128
129
|
UserAndAccessSteps.getCustomRoleFieldError().should('not.be.visible');
|
|
129
130
|
|
|
130
131
|
// When I create the user with a valid custom role
|
|
131
|
-
UserAndAccessSteps.toggleWriteAccessAny();
|
|
132
132
|
SecurityStubs.spyOnUserCreate();
|
|
133
133
|
UserAndAccessSteps.confirmUserCreate();
|
|
134
134
|
// Then the user should be created with that custom role
|
|
@@ -281,7 +281,7 @@ describe('User and Access', () => {
|
|
|
281
281
|
LoginSteps.loginWithUser('admin', DEFAULT_ADMIN_PASSWORD);
|
|
282
282
|
UserAndAccessSteps.getUsersTable().should('be.visible');
|
|
283
283
|
|
|
284
|
-
cy.visit('/login?r=%
|
|
284
|
+
cy.visit('/login?r=%2Fsparql');
|
|
285
285
|
cy.reload();
|
|
286
286
|
UserAndAccessSteps.getUrl().should('include', '/sparql');
|
|
287
287
|
});
|
|
@@ -429,7 +429,7 @@ describe('User and Access', () => {
|
|
|
429
429
|
let repositoryId1;
|
|
430
430
|
let repositoryId2;
|
|
431
431
|
let repositoryId3;
|
|
432
|
-
const graphqlUser = 'graphqlUser';
|
|
432
|
+
const graphqlUser = 'graphqlUser' + Date.now();
|
|
433
433
|
|
|
434
434
|
beforeEach(() => {
|
|
435
435
|
RepositoriesStubs.spyGetRepositories();
|
|
@@ -650,7 +650,7 @@ describe('User and Access', () => {
|
|
|
650
650
|
let writeRepositoryId;
|
|
651
651
|
let graphQLOnlyRepositoryId;
|
|
652
652
|
let maintainedRepositoryId;
|
|
653
|
-
const maintainerUser = 'maintainerUser';
|
|
653
|
+
const maintainerUser = 'maintainerUser' + Date.now();
|
|
654
654
|
|
|
655
655
|
beforeEach(() => {
|
|
656
656
|
RepositoriesStubs.spyGetRepositories();
|
|
@@ -691,6 +691,8 @@ describe('User and Access', () => {
|
|
|
691
691
|
// 2. Read permission for one repository.
|
|
692
692
|
UserAndAccessSteps.openEditUserPage(maintainerUser);
|
|
693
693
|
cy.wait('@get-user');
|
|
694
|
+
// Wait until the loaded user is bound to the form, otherwise toggling a right fails.
|
|
695
|
+
UserAndAccessSteps.getUsernameField().should('have.value', maintainerUser);
|
|
694
696
|
setUserAuths({repo: readRepositoryId, read: true});
|
|
695
697
|
// 3. Write permission for one repository.
|
|
696
698
|
setUserAuths({repo: writeRepositoryId, write: true});
|
|
@@ -701,8 +703,10 @@ describe('User and Access', () => {
|
|
|
701
703
|
// When I log in as a user with repository maintain permission.
|
|
702
704
|
UserAndAccessSteps.toggleSecurity();
|
|
703
705
|
LoginSteps.loginWithUser(maintainerUser, PASSWORD);
|
|
706
|
+
// Wait for the login to complete, otherwise visiting another page aborts it.
|
|
707
|
+
cy.url().should('not.include', '/login');
|
|
704
708
|
// And navigate to the repository list view.
|
|
705
|
-
RepositorySteps.visit(
|
|
709
|
+
RepositorySteps.visit();
|
|
706
710
|
|
|
707
711
|
// Then I should see all repositories for which the user has at least read permission.
|
|
708
712
|
RepositorySteps.getRepositories().should('have.length', 4);
|
|
@@ -761,7 +765,9 @@ describe('User and Access', () => {
|
|
|
761
765
|
createUser(maintainerUser, PASSWORD, ROLE_USER, {maintain: true, repoName: maintainedRepositoryId});
|
|
762
766
|
UserAndAccessSteps.toggleSecurity();
|
|
763
767
|
LoginSteps.loginWithUser(maintainerUser, PASSWORD);
|
|
764
|
-
|
|
768
|
+
// Wait for the login to complete, otherwise visiting another page aborts it.
|
|
769
|
+
cy.url().should('not.include', '/login');
|
|
770
|
+
RepositorySteps.visit();
|
|
765
771
|
|
|
766
772
|
// When the user opens the edit page of the repository they can maintain.
|
|
767
773
|
RepositorySteps.getEditRepositoryButton(maintainedRepositoryId).should('be.visible');
|
|
@@ -913,6 +919,9 @@ describe('User and Access', () => {
|
|
|
913
919
|
}
|
|
914
920
|
|
|
915
921
|
function navigateMenuPath(pathArray, expectedUrl, expectedTitle) {
|
|
922
|
+
// The layout rebuilds the navbar model when the previous navigation finishes loading, which closes any opened
|
|
923
|
+
// submenu, so wait for it before opening a menu group.
|
|
924
|
+
LayoutSteps.getLayout().should('not.have.class', 'loading');
|
|
916
925
|
pathArray.forEach((label, index) => {
|
|
917
926
|
if (index === 0) {
|
|
918
927
|
MainMenuSteps.clickOnMenu(label);
|
|
@@ -977,14 +986,14 @@ describe('User and Access', () => {
|
|
|
977
986
|
};
|
|
978
987
|
|
|
979
988
|
const MENU_ITEMS_WITHOUT_GRAPHQL = [
|
|
980
|
-
//
|
|
989
|
+
// Import
|
|
981
990
|
{
|
|
982
991
|
path: ['Import'],
|
|
983
992
|
expectedUrl: '/import',
|
|
984
993
|
checks: noAuthChecks,
|
|
985
994
|
},
|
|
986
995
|
|
|
987
|
-
//
|
|
996
|
+
// Explore
|
|
988
997
|
{
|
|
989
998
|
path: ['Explore', 'Graphs overview'],
|
|
990
999
|
expectedUrl: '/graphs',
|
|
@@ -1012,7 +1021,7 @@ describe('User and Access', () => {
|
|
|
1012
1021
|
checks: noAuthChecks,
|
|
1013
1022
|
},
|
|
1014
1023
|
|
|
1015
|
-
//
|
|
1024
|
+
// SPARQL
|
|
1016
1025
|
{
|
|
1017
1026
|
path: ['SPARQL'],
|
|
1018
1027
|
expectedTitle: 'SPARQL Query & Update',
|
|
@@ -1020,9 +1029,16 @@ describe('User and Access', () => {
|
|
|
1020
1029
|
checks: noAuthChecks,
|
|
1021
1030
|
},
|
|
1022
1031
|
|
|
1023
|
-
//
|
|
1032
|
+
// TTYG
|
|
1033
|
+
{
|
|
1034
|
+
path: ['Talk to Your Graph'],
|
|
1035
|
+
expectedUrl: '/ttyg',
|
|
1036
|
+
checks: noAuthChecks,
|
|
1037
|
+
},
|
|
1038
|
+
|
|
1039
|
+
// GraphQL
|
|
1024
1040
|
|
|
1025
|
-
//
|
|
1041
|
+
// Monitor
|
|
1026
1042
|
{
|
|
1027
1043
|
path: ['Monitor', 'Queries and Updates'],
|
|
1028
1044
|
expectedUrl: '/monitor/queries',
|
|
@@ -1030,7 +1046,7 @@ describe('User and Access', () => {
|
|
|
1030
1046
|
checks: noAuthChecks,
|
|
1031
1047
|
},
|
|
1032
1048
|
|
|
1033
|
-
//
|
|
1049
|
+
// Setup
|
|
1034
1050
|
{
|
|
1035
1051
|
path: ['Setup', 'My Settings'],
|
|
1036
1052
|
expectedUrl: '/settings',
|
|
@@ -1082,14 +1098,7 @@ describe('User and Access', () => {
|
|
|
1082
1098
|
checks: noAuthChecks,
|
|
1083
1099
|
},
|
|
1084
1100
|
|
|
1085
|
-
//
|
|
1086
|
-
{
|
|
1087
|
-
path: ['Lab', 'Talk to Your Graph'],
|
|
1088
|
-
expectedUrl: '/ttyg',
|
|
1089
|
-
checks: noAuthChecks,
|
|
1090
|
-
},
|
|
1091
|
-
|
|
1092
|
-
// 8) Help
|
|
1101
|
+
// Help
|
|
1093
1102
|
{
|
|
1094
1103
|
path: ['Help', 'REST API'],
|
|
1095
1104
|
expectedUrl: '/webapi',
|
|
@@ -1129,14 +1138,14 @@ describe('User and Access', () => {
|
|
|
1129
1138
|
];
|
|
1130
1139
|
|
|
1131
1140
|
const FREE_ACCESS_MENU_ITEMS_WITHOUT_GRAPHQL = [
|
|
1132
|
-
//
|
|
1141
|
+
// Import
|
|
1133
1142
|
{
|
|
1134
1143
|
path: ['Import'],
|
|
1135
1144
|
expectedUrl: '/import',
|
|
1136
1145
|
checks: noAuthChecks,
|
|
1137
1146
|
},
|
|
1138
1147
|
|
|
1139
|
-
//
|
|
1148
|
+
// Explore
|
|
1140
1149
|
{
|
|
1141
1150
|
path: ['Explore', 'Graphs overview'],
|
|
1142
1151
|
expectedUrl: '/graphs',
|
|
@@ -1164,7 +1173,7 @@ describe('User and Access', () => {
|
|
|
1164
1173
|
checks: noAuthChecks,
|
|
1165
1174
|
},
|
|
1166
1175
|
|
|
1167
|
-
//
|
|
1176
|
+
// SPARQL
|
|
1168
1177
|
{
|
|
1169
1178
|
path: ['SPARQL'],
|
|
1170
1179
|
expectedTitle: 'SPARQL Query & Update',
|
|
@@ -1172,7 +1181,7 @@ describe('User and Access', () => {
|
|
|
1172
1181
|
checks: noAuthChecks,
|
|
1173
1182
|
},
|
|
1174
1183
|
|
|
1175
|
-
//
|
|
1184
|
+
// Setup
|
|
1176
1185
|
{
|
|
1177
1186
|
path: ['Setup', 'Connectors'],
|
|
1178
1187
|
expectedUrl: '/connectors',
|
|
@@ -28,7 +28,7 @@ describe('Abort query', () => {
|
|
|
28
28
|
// and execute a query that takes a long time.
|
|
29
29
|
YasqeSteps.pasteQuery(
|
|
30
30
|
'select (count(*) as ?count) where {?s ?p ?o. ?s1 ?p1 ?o1. ?s2 ?p2 ?o2. ?s3 ?p3 ?o3.}');
|
|
31
|
-
YasqeSteps.
|
|
31
|
+
YasqeSteps.executeQueryWithoutWaitingForResult();
|
|
32
32
|
|
|
33
33
|
// Then I expect to an "Abort query" button to be displayed,
|
|
34
34
|
YasqeSteps.getAbortQueryButton().should('exist');
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import {QueryStubs} from '../../stubs/yasgui/query-stubs.js';
|
|
2
|
+
import {SparqlEditorSteps} from '../../steps/sparql-editor-steps.js';
|
|
3
|
+
import {YasqeSteps} from '../../steps/yasgui/yasqe-steps.js';
|
|
4
|
+
import ImportSteps from '../../steps/import/import-steps.js';
|
|
5
|
+
import {MainMenuSteps} from '../../steps/main-menu-steps.js';
|
|
6
|
+
import {ModalDialogSteps} from '../../steps/modal-dialog-steps.js';
|
|
7
|
+
import {RepositorySelectorSteps} from '../../steps/repository-selector-steps.js';
|
|
8
|
+
import {LanguageSelectorSteps} from '../../steps/language-selector-steps.js';
|
|
9
|
+
import {UserAndAccessSteps} from '../../steps/setup/user-and-access-steps.js';
|
|
10
|
+
import {LoginSteps} from '../../steps/login-steps.js';
|
|
11
|
+
import {HeaderSteps} from '../../steps/header-steps.js';
|
|
12
|
+
|
|
13
|
+
const LONG_RUNNING_QUERY_DELAY = 10000;
|
|
14
|
+
|
|
15
|
+
describe('SPARQL Editor Navigation', () => {
|
|
16
|
+
let repositoryId;
|
|
17
|
+
let secondRepositoryId;
|
|
18
|
+
beforeEach(() => {
|
|
19
|
+
repositoryId = 'sparql-editor-' + Date.now();
|
|
20
|
+
QueryStubs.stubQueryCountResponse();
|
|
21
|
+
cy.createRepository({id: repositoryId});
|
|
22
|
+
cy.presetRepository(repositoryId);
|
|
23
|
+
QueryStubs.spyAbortQuery();
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
afterEach(() => {
|
|
27
|
+
cy.deleteRepository(repositoryId);
|
|
28
|
+
if (secondRepositoryId) {
|
|
29
|
+
cy.deleteRepository(secondRepositoryId);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
it('should navigate to other view if user confirmed navigation', () => {
|
|
34
|
+
// GIVEN: I visit a page with the ontotext-yasgui-web-component on it.
|
|
35
|
+
SparqlEditorSteps.visitSparqlEditorPage();
|
|
36
|
+
MainMenuSteps.getMainMenu().should('be.visible');
|
|
37
|
+
|
|
38
|
+
// WHEN: I try to go to another view
|
|
39
|
+
MainMenuSteps.clickOnMenuImport();
|
|
40
|
+
// THEN: I expect to navigate because there is no running query
|
|
41
|
+
ImportSteps.getView().should('exist');
|
|
42
|
+
|
|
43
|
+
// WHEN: I return to the view with the ontotext-yasgui-web-component.
|
|
44
|
+
SparqlEditorSteps.visitSparqlEditorPage();
|
|
45
|
+
// AND: I run a long-running query
|
|
46
|
+
QueryStubs.stubLongRunningQuery(repositoryId, LONG_RUNNING_QUERY_DELAY);
|
|
47
|
+
YasqeSteps.executeQueryWithoutWaitingForResult();
|
|
48
|
+
// AND: I try to leave the page
|
|
49
|
+
MainMenuSteps.clickOnMenuImport();
|
|
50
|
+
// THEN: I expect to see a confirmation dialog
|
|
51
|
+
ModalDialogSteps.getDialog().should('exist');
|
|
52
|
+
ModalDialogSteps.getDialogBody().should('contain.text', 'You have running 1 query, that will be aborted.');
|
|
53
|
+
|
|
54
|
+
// WHEN: I cancel the dialog
|
|
55
|
+
ModalDialogSteps.cancel();
|
|
56
|
+
// THEN: I expect to stay on the same view
|
|
57
|
+
SparqlEditorSteps.verifyUrl();
|
|
58
|
+
ImportSteps.getView().should('not.exist');
|
|
59
|
+
// AND: I expect the query not to be aborted
|
|
60
|
+
cy.get('@abortQuery.all').should('have.length', 0);
|
|
61
|
+
|
|
62
|
+
// WHEN: I confirm leaving the page
|
|
63
|
+
MainMenuSteps.clickOnMenuImport();
|
|
64
|
+
ModalDialogSteps.getDialog().should('exist');
|
|
65
|
+
ModalDialogSteps.getDialogBody().should('contain.text', 'You have running 1 query, that will be aborted.');
|
|
66
|
+
ModalDialogSteps.confirm();
|
|
67
|
+
// THEN: I expect to navigate to the other view
|
|
68
|
+
ImportSteps.verifyUrl();
|
|
69
|
+
ImportSteps.getView().should('exist');
|
|
70
|
+
// AND: I expect the query to be aborted
|
|
71
|
+
cy.get('@abortQuery.all').should('have.length', 1);
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
it('should change active repository if user confirmed', () => {
|
|
75
|
+
// GIVEN: There are at least two repositories and one is selected
|
|
76
|
+
secondRepositoryId = 'sparql-editor-' + Date.now();
|
|
77
|
+
cy.createRepository({id: secondRepositoryId});
|
|
78
|
+
|
|
79
|
+
// WHEN: I visit a page with the ontotext-yasgui-web-component on it.
|
|
80
|
+
SparqlEditorSteps.visitSparqlEditorPage();
|
|
81
|
+
// AND: I run a long-running query
|
|
82
|
+
QueryStubs.stubLongRunningQuery(repositoryId, LONG_RUNNING_QUERY_DELAY);
|
|
83
|
+
YasqeSteps.executeQueryWithoutWaitingForResult();
|
|
84
|
+
// AND: I try to change the repository
|
|
85
|
+
RepositorySelectorSteps.selectRepository(secondRepositoryId);
|
|
86
|
+
// THEN: I expect to see a confirmation dialog
|
|
87
|
+
ModalDialogSteps.getDialog().should('exist');
|
|
88
|
+
ModalDialogSteps.getDialogBody().should('contain.text', 'You have running 1 query, that will be aborted.');
|
|
89
|
+
|
|
90
|
+
// WHEN: I cancel the dialog
|
|
91
|
+
ModalDialogSteps.cancel();
|
|
92
|
+
// THEN: I expect the repository not to be changed.
|
|
93
|
+
RepositorySelectorSteps.getSelectedRepository().should('contain', repositoryId);
|
|
94
|
+
// AND: I expect the query not to be aborted
|
|
95
|
+
cy.get('@abortQuery.all').should('have.length', 0);
|
|
96
|
+
|
|
97
|
+
// WHEN: I confirm changing of repository
|
|
98
|
+
RepositorySelectorSteps.selectRepository(secondRepositoryId);
|
|
99
|
+
ModalDialogSteps.getDialog().should('exist');
|
|
100
|
+
ModalDialogSteps.getDialogBody().should('contain.text', 'You have running 1 query, that will be aborted.');
|
|
101
|
+
ModalDialogSteps.confirm();
|
|
102
|
+
// THEN: I expect the active repository to be changed
|
|
103
|
+
RepositorySelectorSteps.getSelectedRepository().should('contain', secondRepositoryId);
|
|
104
|
+
// AND: I expect the query to be aborted
|
|
105
|
+
cy.get('@abortQuery.all').should('have.length', 1);
|
|
106
|
+
|
|
107
|
+
// WHEN: I change the repository again, but this time there is no running query
|
|
108
|
+
RepositorySelectorSteps.selectRepository(repositoryId);
|
|
109
|
+
// THEN: I expect the repository to be changed without confirmation, because there are no running queries.
|
|
110
|
+
RepositorySelectorSteps.getSelectedRepository().should('contain', repositoryId);
|
|
111
|
+
ModalDialogSteps.getDialog().should('not.exist');
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
it('should change application language if user confirmed', () => {
|
|
115
|
+
// GIVEN: I visit a page with the ontotext-yasgui-web-component on it, in English. The test switches the language to French.
|
|
116
|
+
SparqlEditorSteps.visitSparqlEditorPage();
|
|
117
|
+
// Execute and wait for result give chance to application to be ready for the test, otherwise listeners are not
|
|
118
|
+
// attached and the test will fail
|
|
119
|
+
YasqeSteps.executeQuery();
|
|
120
|
+
LanguageSelectorSteps.getLanguageSelectorDropdownButton().should('contain', 'en');
|
|
121
|
+
|
|
122
|
+
// WHEN: I run a long-running query
|
|
123
|
+
QueryStubs.stubLongRunningQuery(repositoryId, LONG_RUNNING_QUERY_DELAY);
|
|
124
|
+
YasqeSteps.executeQueryWithoutWaitingForResult();
|
|
125
|
+
// AND: I try to change the application language
|
|
126
|
+
LanguageSelectorSteps.switchToFr();
|
|
127
|
+
// THEN: I expect to see a confirmation dialog
|
|
128
|
+
ModalDialogSteps.getDialog().should('exist');
|
|
129
|
+
ModalDialogSteps.getDialogBody().should('contain.text', 'You have running 1 query, that will be aborted.');
|
|
130
|
+
|
|
131
|
+
// WHEN: I cancel the dialog
|
|
132
|
+
ModalDialogSteps.cancel();
|
|
133
|
+
// THEN: I expect the application language not to be changed.
|
|
134
|
+
LanguageSelectorSteps.getLanguageSelectorDropdownButton().should('contain', 'en');
|
|
135
|
+
// AND: I expect the query not to be aborted
|
|
136
|
+
cy.get('@abortQuery.all').should('have.length', 0);
|
|
137
|
+
|
|
138
|
+
// WHEN: I confirm changing the language
|
|
139
|
+
LanguageSelectorSteps.switchToFr();
|
|
140
|
+
ModalDialogSteps.getDialog().should('exist');
|
|
141
|
+
ModalDialogSteps.getDialogBody().should('contain.text', 'You have running 1 query, that will be aborted.');
|
|
142
|
+
ModalDialogSteps.confirm();
|
|
143
|
+
// THEN: I expect the query to be aborted
|
|
144
|
+
cy.get('@abortQuery.all').should('have.length', 1);
|
|
145
|
+
// AND: I expect the application language to be changed
|
|
146
|
+
LanguageSelectorSteps.getLanguageSelectorDropdownButton().should('contain', 'fr');
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
it('should abort query when page is reloaded', () => {
|
|
150
|
+
// GIVEN: I visit a page with the ontotext-yasgui-web-component on it.
|
|
151
|
+
SparqlEditorSteps.visitSparqlEditorPage();
|
|
152
|
+
// AND: I run a long-running query
|
|
153
|
+
QueryStubs.stubLongRunningQuery(repositoryId, LONG_RUNNING_QUERY_DELAY);
|
|
154
|
+
YasqeSteps.executeQueryWithoutWaitingForResult();
|
|
155
|
+
|
|
156
|
+
// WHEN: I reload the page
|
|
157
|
+
SparqlEditorSteps.visitSparqlEditorPage();
|
|
158
|
+
// THEN: I expect the query to be aborted
|
|
159
|
+
cy.get('@abortQuery.all').should('have.length', 1);
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
context('Security', () => {
|
|
163
|
+
|
|
164
|
+
beforeEach(() => {
|
|
165
|
+
UserAndAccessSteps.visit();
|
|
166
|
+
UserAndAccessSteps.toggleSecurity();
|
|
167
|
+
LoginSteps.loginWithUser('admin', 'root');
|
|
168
|
+
// Wait for the login to finish, otherwise the next visit reloads the page before the session is stored.
|
|
169
|
+
HeaderSteps.getUserMenu().should('be.visible');
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
afterEach(() => {
|
|
173
|
+
cy.loginAsAdmin().then(() => {
|
|
174
|
+
cy.switchOffSecurity(true);
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
it('should sign out if user confirmed', () => {
|
|
179
|
+
// GIVEN: The security is on
|
|
180
|
+
// AND: I visit a page with the ontotext-yasgui-web-component on it.
|
|
181
|
+
SparqlEditorSteps.visitSparqlEditorPage();
|
|
182
|
+
|
|
183
|
+
// WHEN: I log out
|
|
184
|
+
LoginSteps.logout();
|
|
185
|
+
// THEN: I expect to navigate to the login page, because there are no long-running queries.
|
|
186
|
+
LoginSteps.verifyUrl();
|
|
187
|
+
|
|
188
|
+
// WHEN: I am logged in
|
|
189
|
+
LoginSteps.loginWithUser('admin', 'root');
|
|
190
|
+
// AND: I run a long-running query
|
|
191
|
+
QueryStubs.stubLongRunningQuery(repositoryId, LONG_RUNNING_QUERY_DELAY);
|
|
192
|
+
YasqeSteps.executeQueryWithoutWaitingForResult();
|
|
193
|
+
// AND: I try to log out
|
|
194
|
+
LoginSteps.logout();
|
|
195
|
+
// THEN: I expect to see a sign-out confirmation dialog
|
|
196
|
+
ModalDialogSteps.getDialog().should('exist');
|
|
197
|
+
ModalDialogSteps.getDialogBody()
|
|
198
|
+
.should('contain.text', 'You have running 1 query, that will be aborted.')
|
|
199
|
+
.and('contain.text', 'Are you sure that you want to sign out?');
|
|
200
|
+
|
|
201
|
+
// WHEN: I cancel the dialog
|
|
202
|
+
ModalDialogSteps.cancel();
|
|
203
|
+
// THEN: I expect to stay logged in
|
|
204
|
+
HeaderSteps.getUserMenu().should('be.visible');
|
|
205
|
+
// AND: I expect the query not to be aborted
|
|
206
|
+
cy.get('@abortQuery.all').should('have.length', 0);
|
|
207
|
+
|
|
208
|
+
// WHEN: I confirm signing out
|
|
209
|
+
LoginSteps.logout();
|
|
210
|
+
ModalDialogSteps.getDialog().should('exist');
|
|
211
|
+
ModalDialogSteps.getDialogBody().should('contain.text', 'You have running 1 query, that will be aborted.');
|
|
212
|
+
ModalDialogSteps.confirm();
|
|
213
|
+
// THEN: I expect to navigate to the login page.
|
|
214
|
+
LoginSteps.verifyUrl();
|
|
215
|
+
// AND: I expect the query to be aborted
|
|
216
|
+
cy.get('@abortQuery.all').should('have.length', 1);
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
});
|
|
@@ -93,7 +93,7 @@ describe('Yasgui tabs', () => {
|
|
|
93
93
|
// When I execute a long-running query,
|
|
94
94
|
QueryStubs.stubLongRunningQuery(repositoryId);
|
|
95
95
|
SparqlEditorSteps.visitSparqlEditorPage();
|
|
96
|
-
YasqeSteps.
|
|
96
|
+
YasqeSteps.executeQueryWithoutWaitingForResult();
|
|
97
97
|
// and try to navigate to other page.
|
|
98
98
|
MainMenuSteps.clickOnMenuImport();
|
|
99
99
|
|
|
@@ -44,13 +44,10 @@ describe('Download results', () => {
|
|
|
44
44
|
|
|
45
45
|
// Then expect follow options to be present.
|
|
46
46
|
YasrSteps.getDownloadAsOption(0).contains('JSON');
|
|
47
|
-
YasrSteps.getDownloadAsOption(1).contains( '
|
|
48
|
-
YasrSteps.getDownloadAsOption(2).contains( '
|
|
49
|
-
YasrSteps.getDownloadAsOption(3).contains( '
|
|
50
|
-
YasrSteps.getDownloadAsOption(4).contains( '
|
|
51
|
-
YasrSteps.getDownloadAsOption(5).contains( 'TSV');
|
|
52
|
-
YasrSteps.getDownloadAsOption(6).contains( 'TSV*');
|
|
53
|
-
YasrSteps.getDownloadAsOption(7).contains( 'Binary RDF Results');
|
|
47
|
+
YasrSteps.getDownloadAsOption(1).contains( 'XML');
|
|
48
|
+
YasrSteps.getDownloadAsOption(2).contains( 'CSV');
|
|
49
|
+
YasrSteps.getDownloadAsOption(3).contains( 'TSV');
|
|
50
|
+
YasrSteps.getDownloadAsOption(4).contains( 'Binary RDF Results');
|
|
54
51
|
});
|
|
55
52
|
|
|
56
53
|
it('should download as JSON-LD after a CONSTRUCT query', () => {
|
|
@@ -5,7 +5,7 @@ import {GraphConfigStubs} from '../../../../stubs/graph-config-stubs.js';
|
|
|
5
5
|
import {BrowserStubs} from '../../../../stubs/browser-stubs.js';
|
|
6
6
|
import {VisualGraphSplitButtonSteps} from '../../../../steps/visual-graph-split-button-steps.js';
|
|
7
7
|
|
|
8
|
-
describe('"
|
|
8
|
+
describe('"VizGraph" split button', () => {
|
|
9
9
|
let repositoryId;
|
|
10
10
|
|
|
11
11
|
beforeEach(() => {
|
|
@@ -21,27 +21,27 @@ describe('"Visualize" split button', () => {
|
|
|
21
21
|
cy.deleteRepository(repositoryId);
|
|
22
22
|
});
|
|
23
23
|
|
|
24
|
-
it('should display "
|
|
24
|
+
it('should display "VizGraph" split button when user execute a CONSTRUCT query', () => {
|
|
25
25
|
// WHEN: I visit a page with 'ontotext-yasgui-web-component' on it, and execute select query.
|
|
26
26
|
executeSelectQuery();
|
|
27
|
-
// THEN: I expect the '
|
|
27
|
+
// THEN: I expect the 'VizGraph' button to not be visible.
|
|
28
28
|
VisualGraphSplitButtonSteps.getVisualizeMainButton().should('not.be.visible');
|
|
29
29
|
|
|
30
30
|
// WHEN: I execute a CONSTRUCT query.
|
|
31
31
|
executeConstructQuery();
|
|
32
|
-
// THEN: I expect the '
|
|
32
|
+
// THEN: I expect the 'VizGraph' button to be visible.
|
|
33
33
|
VisualGraphSplitButtonSteps.getVisualizeMainButton().should('be.visible');
|
|
34
34
|
|
|
35
35
|
// WHEN: I execute SELECT query again.
|
|
36
36
|
executeSelectQuery();
|
|
37
|
-
// THEN: I expect the '
|
|
37
|
+
// THEN: I expect the 'VizGraph' button to not be visible.
|
|
38
38
|
VisualGraphSplitButtonSteps.getVisualizeMainButton().should('not.be.visible');
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
it('should inform user that there no created graph configurations', () => {
|
|
42
42
|
// GIVEN: There are no graph configurations.
|
|
43
43
|
GraphConfigStubs.stubGetEmptyGraphConfigs();
|
|
44
|
-
// AND: I visit a page with 'ontotext-yasgui-web-component' on it, and the '
|
|
44
|
+
// AND: I visit a page with 'ontotext-yasgui-web-component' on it, and the 'VizGraph' button is visible.
|
|
45
45
|
executeConstructQuery();
|
|
46
46
|
|
|
47
47
|
// WHEN: I open the dropdown.
|
|
@@ -57,7 +57,7 @@ describe('"Visualize" split button', () => {
|
|
|
57
57
|
});
|
|
58
58
|
|
|
59
59
|
it('should open graphs-visualizations view when click on main button', () => {
|
|
60
|
-
// GIVEN: I visit a page with 'ontotext-yasgui-web-component' on it, and the '
|
|
60
|
+
// GIVEN: I visit a page with 'ontotext-yasgui-web-component' on it, and the 'VizGraph' button is visible.
|
|
61
61
|
executeConstructQuery();
|
|
62
62
|
|
|
63
63
|
// WHEN: I click on main button
|
|
@@ -69,7 +69,7 @@ describe('"Visualize" split button', () => {
|
|
|
69
69
|
});
|
|
70
70
|
|
|
71
71
|
it('should open graphs-visualizations view when select a graph configuration', () => {
|
|
72
|
-
// GIVEN: I visit a page with 'ontotext-yasgui-web-component' on it, and the '
|
|
72
|
+
// GIVEN: I visit a page with 'ontotext-yasgui-web-component' on it, and the 'VizGraph' button is visible.
|
|
73
73
|
executeConstructQuery();
|
|
74
74
|
GraphConfigStubs.stubGetGraphConfigs();
|
|
75
75
|
|
|
@@ -230,7 +230,7 @@ describe('TTYG chat list', () => {
|
|
|
230
230
|
HomeSteps.visit();
|
|
231
231
|
cy.wait('@get-chat');
|
|
232
232
|
// and came back to the ttyg page
|
|
233
|
-
TTYGViewSteps.visit(
|
|
233
|
+
TTYGViewSteps.visit();
|
|
234
234
|
|
|
235
235
|
// Then I expect to last used chat be selected.
|
|
236
236
|
TTYGViewSteps.getChatFromGroup(0, 2).should('have.class', 'selected');
|
|
@@ -536,8 +536,10 @@ describe('TTYG create new agent', () => {
|
|
|
536
536
|
|
|
537
537
|
// WHEN: I enable the temperature setting.
|
|
538
538
|
TtygAgentSettingsModalSteps.toggleTemperature();
|
|
539
|
-
// THEN: I expect the
|
|
540
|
-
TtygAgentSettingsModalSteps.getTemperatureSliderField().should('have.value', '
|
|
539
|
+
// THEN: I expect the last set temperature value to be restored instead of the default one.
|
|
540
|
+
TtygAgentSettingsModalSteps.getTemperatureSliderField().should('have.value', '1.2');
|
|
541
|
+
// AND: I expect the high-temperature warning to be displayed again.
|
|
542
|
+
TtygAgentSettingsModalSteps.getTemperatureField().should('have.class', 'has-warning');
|
|
541
543
|
});
|
|
542
544
|
|
|
543
545
|
it('should toggle the topP setting', () => {
|
|
@@ -556,8 +558,8 @@ describe('TTYG create new agent', () => {
|
|
|
556
558
|
|
|
557
559
|
// WHEN: I enable the topP setting.
|
|
558
560
|
TtygAgentSettingsModalSteps.toggleTop();
|
|
559
|
-
// THEN: I expect the
|
|
560
|
-
TtygAgentSettingsModalSteps.getTopPField().should('have.value', '
|
|
561
|
+
// THEN: I expect the last set topP value to be restored instead of the default one.
|
|
562
|
+
TtygAgentSettingsModalSteps.getTopPField().should('have.value', '0.3');
|
|
561
563
|
});
|
|
562
564
|
|
|
563
565
|
it('Should warn the user when he changes the default value of the base instruction', () => {
|
|
@@ -61,7 +61,7 @@ describe('TTYG create chat', () => {
|
|
|
61
61
|
// and returns to the TTYG page
|
|
62
62
|
TTYGStubs.stubChatsListGet("/ttyg/chats/create/get-chats-after-create.json");
|
|
63
63
|
TTYGStubs.stubAgentGet();
|
|
64
|
-
TTYGViewSteps.visit(
|
|
64
|
+
TTYGViewSteps.visit();
|
|
65
65
|
cy.wait('@get-chat-list');
|
|
66
66
|
// Then I expect newly created chat be selected.
|
|
67
67
|
TTYGViewSteps.getChatFromGroup(0, 0).should('contain', 'New chat of Han Solo is a character');
|
|
@@ -45,6 +45,55 @@ describe('TTYG edit an agent', () => {
|
|
|
45
45
|
ToasterSteps.verifySuccess('The agent \'agent-1\' was saved successfully.');
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
+
it('should preserve the temperature and topP values of the edited agent', () => {
|
|
49
|
+
TTYGStubs.stubChatsListGet();
|
|
50
|
+
TTYGStubs.stubAgentListGet();
|
|
51
|
+
TTYGStubs.stubChatGet();
|
|
52
|
+
// GIVEN: I have opened the ttyg page
|
|
53
|
+
TTYGViewSteps.visit();
|
|
54
|
+
cy.wait('@get-chat-list');
|
|
55
|
+
cy.wait('@get-agent-list');
|
|
56
|
+
cy.wait('@get-chat');
|
|
57
|
+
|
|
58
|
+
// WHEN: I open the settings of an agent whose temperature and topP differ from the default values
|
|
59
|
+
TTYGViewSteps.openAgentSettingsModalForAgent(0);
|
|
60
|
+
|
|
61
|
+
// THEN: I expect the values of the agent to be loaded instead of the default ones
|
|
62
|
+
TtygAgentSettingsModalSteps.getTemperatureSliderField().should('have.value', '0');
|
|
63
|
+
TtygAgentSettingsModalSteps.getTopPField().should('have.value', '0');
|
|
64
|
+
|
|
65
|
+
// WHEN: I disable the temperature setting
|
|
66
|
+
TtygAgentSettingsModalSteps.toggleTemperature();
|
|
67
|
+
// THEN: I expect the temperature controls to be disabled
|
|
68
|
+
TtygAgentSettingsModalSteps.getTemperatureField().should('be.disabled');
|
|
69
|
+
TtygAgentSettingsModalSteps.getTemperatureSliderField().should('be.disabled');
|
|
70
|
+
|
|
71
|
+
// WHEN: I enable the temperature setting again
|
|
72
|
+
TtygAgentSettingsModalSteps.toggleTemperature();
|
|
73
|
+
// THEN: I expect the temperature value of the agent to be restored instead of the default one
|
|
74
|
+
TtygAgentSettingsModalSteps.getTemperatureSliderField().should('have.value', '0');
|
|
75
|
+
|
|
76
|
+
// WHEN: I disable the topP setting
|
|
77
|
+
TtygAgentSettingsModalSteps.toggleTop();
|
|
78
|
+
// THEN: I expect the topP control to be disabled
|
|
79
|
+
TtygAgentSettingsModalSteps.getTopPField().should('be.disabled');
|
|
80
|
+
|
|
81
|
+
// WHEN: I enable the topP setting again
|
|
82
|
+
TtygAgentSettingsModalSteps.toggleTop();
|
|
83
|
+
// THEN: I expect the topP value of the agent to be restored instead of the default one
|
|
84
|
+
TtygAgentSettingsModalSteps.getTopPField().should('have.value', '0');
|
|
85
|
+
|
|
86
|
+
// WHEN: I save the agent
|
|
87
|
+
TTYGStubs.stubAgentEdit();
|
|
88
|
+
TtygAgentSettingsModalSteps.saveAgent();
|
|
89
|
+
// THEN: I expect the values of the agent to be sent instead of the default ones
|
|
90
|
+
cy.wait('@edit-agent').then((interception) => {
|
|
91
|
+
expect(interception.request.body.temperature).to.equal(0);
|
|
92
|
+
expect(interception.request.body.topP).to.equal(0);
|
|
93
|
+
});
|
|
94
|
+
ToasterSteps.verifySuccess('The agent \'agent-1\' was saved successfully.');
|
|
95
|
+
});
|
|
96
|
+
|
|
48
97
|
it('should not be able to edit an agent if an extraction method is selected but the precondition has failed', () => {
|
|
49
98
|
TTYGStubs.stubChatsListGet();
|
|
50
99
|
TTYGStubs.stubAgentListGet();
|
|
@@ -60,6 +109,14 @@ describe('TTYG edit an agent', () => {
|
|
|
60
109
|
|
|
61
110
|
// THEN: The Save Agent button should be disabled
|
|
62
111
|
TtygAgentSettingsModalSteps.getSaveAgentButton().should('be.disabled');
|
|
112
|
+
// AND: The panel of the FTS extraction method should be expanded, so that the reason is visible
|
|
113
|
+
TtygAgentSettingsModalSteps.getFtsDisabledHelp().should('be.visible');
|
|
114
|
+
|
|
115
|
+
// WHEN: I try to collapse the panel of the FTS extraction method
|
|
116
|
+
TtygAgentSettingsModalSteps.toggleFTSExtractionMethodPanel();
|
|
117
|
+
// THEN: The panel should remain expanded, because the precondition error is not resolved yet
|
|
118
|
+
TtygAgentSettingsModalSteps.getFtsDisabledHelp().should('be.visible');
|
|
119
|
+
TtygAgentSettingsModalSteps.getSaveAgentButton().should('be.disabled');
|
|
63
120
|
});
|
|
64
121
|
|
|
65
122
|
it('should be able to edit Autocomplete extraction method option', () => {
|
|
@@ -39,7 +39,7 @@ describe('TTYG initial state with API key', () => {
|
|
|
39
39
|
it('Should display the correct initial state when navigating via the navigation menu', () => {
|
|
40
40
|
// Given, I visit the TTYG page via the navigation menu
|
|
41
41
|
HomeSteps.visit();
|
|
42
|
-
MainMenuSteps.
|
|
42
|
+
MainMenuSteps.clickOnMenuTTYG();
|
|
43
43
|
// Then,
|
|
44
44
|
verifyStateWithApiKey();
|
|
45
45
|
});
|
|
@@ -38,7 +38,7 @@ describe.skip('TTYG initial state with selected repository', () => {
|
|
|
38
38
|
it('Should display the correct initial state when navigating via the navigation menu', () => {
|
|
39
39
|
// Given, I visit the TTYG page via the navigation menu with a repository selected
|
|
40
40
|
HomeSteps.visit();
|
|
41
|
-
MainMenuSteps.
|
|
41
|
+
MainMenuSteps.clickOnMenuTTYG();
|
|
42
42
|
// Then,
|
|
43
43
|
verifyStateWithSelectedRepository();
|
|
44
44
|
});
|
|
@@ -14,7 +14,7 @@ describe('TTYG initial state without selected repository', () => {
|
|
|
14
14
|
it('Should display the correct initial state when navigating via the navigation menu', () => {
|
|
15
15
|
// Given, I visit the TTYG page via the navigation menu without a repository selected
|
|
16
16
|
HomeSteps.visit();
|
|
17
|
-
MainMenuSteps.
|
|
17
|
+
MainMenuSteps.clickOnMenuTTYG();
|
|
18
18
|
// Then,
|
|
19
19
|
ErrorSteps.verifyNoConnectedRepoMessage();
|
|
20
20
|
});
|