graphdb-workbench-tests 1.10.1 → 1.11.0-TR4
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.
|
@@ -25,7 +25,7 @@ describe('Visual graph screen validation', () => {
|
|
|
25
25
|
|
|
26
26
|
context('When autocomplete is disabled', () => {
|
|
27
27
|
it('Test notification when autocomplete is disabled', () => {
|
|
28
|
-
cy.visit('
|
|
28
|
+
cy.visit('graphs-visualizations');
|
|
29
29
|
cy.window();
|
|
30
30
|
getSearchField().should('be.visible').type('http://');
|
|
31
31
|
|
|
@@ -42,7 +42,7 @@ describe('Visual graph screen validation', () => {
|
|
|
42
42
|
cy.enableAutocomplete(repositoryId);
|
|
43
43
|
});
|
|
44
44
|
beforeEach(() => {
|
|
45
|
-
cy.visit('
|
|
45
|
+
cy.visit('graphs-visualizations');
|
|
46
46
|
cy.window();
|
|
47
47
|
});
|
|
48
48
|
|
|
@@ -472,7 +472,7 @@ describe('Visual graph screen validation', () => {
|
|
|
472
472
|
});
|
|
473
473
|
|
|
474
474
|
it('Test can create custom visual graph', () => {
|
|
475
|
-
cy.visit('
|
|
475
|
+
cy.visit('graphs-visualizations');
|
|
476
476
|
getCreateCustomGraphLink().click();
|
|
477
477
|
cy.url().should('include', '/config/save');
|
|
478
478
|
getGraphConfigName().type('configName');
|
|
@@ -222,6 +222,22 @@ describe('My Settings', () => {
|
|
|
222
222
|
});
|
|
223
223
|
});
|
|
224
224
|
|
|
225
|
+
it('Saving user credentials with checked unset password should show modal window to warn user about unsetting the' +
|
|
226
|
+
' password', () => {
|
|
227
|
+
// User role is administrator
|
|
228
|
+
cy.get('#noPassword:checkbox').check()
|
|
229
|
+
.then(() => {
|
|
230
|
+
cy.get('#noPassword:checkbox')
|
|
231
|
+
.should('be.checked');
|
|
232
|
+
});
|
|
233
|
+
getSaveButton().click()
|
|
234
|
+
.then(() => {
|
|
235
|
+
cy.get('.modal-dialog').find('.lead').contains('If you unset the password and then enable security,' +
|
|
236
|
+
' that user will not be able to log into GraphDB through the workbench.');
|
|
237
|
+
}
|
|
238
|
+
)
|
|
239
|
+
});
|
|
240
|
+
|
|
225
241
|
function getUserRepositoryTable() {
|
|
226
242
|
return cy.get('.user-repositories .table');
|
|
227
243
|
}
|
|
@@ -435,10 +435,11 @@ describe('SPARQL screen validation', () => {
|
|
|
435
435
|
verifyResultsPageLength(74);
|
|
436
436
|
|
|
437
437
|
// Uncheck ‘Include inferred’
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
.
|
|
438
|
+
cy.waitUntil(() =>
|
|
439
|
+
getInferenceButton()
|
|
440
|
+
.then(infBtn => infBtn && !infBtn.attr('disabled') && cy.wrap(infBtn).click()))
|
|
441
|
+
.then(() =>
|
|
442
|
+
cy.get('.icon-inferred-off').should('be.visible'));
|
|
442
443
|
|
|
443
444
|
// Confirm that only inferred statements (only 2) are available
|
|
444
445
|
executeQuery();
|
package/package.json
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
Cypress.Commands.add('searchEasyVisualGraph', (searchGraph) => {
|
|
2
2
|
cy.get('.search-rdf-resources > #search-resource-box > .form-control')
|
|
3
3
|
.invoke('val', searchGraph)
|
|
4
|
-
.trigger('change')
|
|
4
|
+
.trigger('change', {force: true})
|
|
5
5
|
.should('have.value', searchGraph)
|
|
6
6
|
.then((searchInput) => {
|
|
7
7
|
cy.waitUntil(() =>
|
|
8
8
|
cy.get('#auto-complete-results-wrapper')
|
|
9
|
-
.
|
|
10
|
-
.then(() =>
|
|
9
|
+
.then((el) => el))
|
|
10
|
+
.then(() => {
|
|
11
|
+
cy.get('.result-item.active')
|
|
12
|
+
.then((activeEl) => {
|
|
13
|
+
cy.wrap(activeEl).click();
|
|
14
|
+
});
|
|
15
|
+
});
|
|
11
16
|
});
|
|
12
17
|
});
|