graphdb-workbench-tests 3.5.0-TR5 → 3.5.0-TR7
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-legacy/guides/welcome/welcome-guide.spec.js +1 -1
- package/e2e-legacy/setup/settings/my-settings-initial-state.spec.js +2 -6
- package/e2e-legacy/setup/settings/my-settings.spec.js +1 -1
- package/e2e-legacy/setup/users-and-access/user-and-access.spec.js +17 -3
- package/npm-shrinkwrap.json +562 -372
- package/package.json +3 -3
- package/steps/setup/settings-steps.js +3 -3
- package/steps/setup/user-and-access-steps.js +48 -5
|
@@ -21,7 +21,7 @@ describe('Welcome', () => {
|
|
|
21
21
|
cy.deleteRepository(repositoryId);
|
|
22
22
|
});
|
|
23
23
|
|
|
24
|
-
it
|
|
24
|
+
it('Should shows welcome steps', () => {
|
|
25
25
|
GuideDialogSteps.assertDialogWithTitleIsVisible('Welcome to Welcome — 1/2');
|
|
26
26
|
GuideDialogSteps.assertDialogWithContentIsVisible('Throughout the guide you will see boxes like this one that will provide instructions on what to do.');
|
|
27
27
|
GuideDialogSteps.clickOnNextButton();
|
|
@@ -20,14 +20,10 @@ function verifyInitialState(repositoryId) {
|
|
|
20
20
|
SettingsSteps.getSparqlEditorPanel().should('be.visible');
|
|
21
21
|
SettingsSteps.getSameAsToggle().should('be.checked');
|
|
22
22
|
SettingsSteps.getSameAsLabel().should('be.visible')
|
|
23
|
-
.and('contain', 'Expand results over owl:SameAs
|
|
24
|
-
.find('.tag').should('be.visible')
|
|
25
|
-
.and('contain', 'ON');
|
|
23
|
+
.and('contain', 'Expand results over owl:SameAs');
|
|
26
24
|
SettingsSteps.getInferenceToggle().should('be.checked');
|
|
27
25
|
SettingsSteps.getInferenceLabel().should('be.visible')
|
|
28
|
-
.and('contain', '
|
|
29
|
-
.find('.tag').should('be.visible')
|
|
30
|
-
.and('contain', 'ON');
|
|
26
|
+
.and('contain', 'Enable inference');
|
|
31
27
|
SettingsSteps.getCountCheckbox().should('be.checked');
|
|
32
28
|
SettingsSteps.getIgnoreSharedCheckbox().should('not.be.checked');
|
|
33
29
|
|
|
@@ -188,7 +188,7 @@ describe('My Settings', () => {
|
|
|
188
188
|
cy.get('.login-credentials').should('be.visible');
|
|
189
189
|
cy.get('#wb-user-username').should('be.visible')
|
|
190
190
|
.and('have.value', 'admin')
|
|
191
|
-
.and('
|
|
191
|
+
.and('be.disabled');
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
function clickLabelBtn(btnId) {
|
|
@@ -250,6 +250,18 @@ describe('User and Access', () => {
|
|
|
250
250
|
});
|
|
251
251
|
|
|
252
252
|
context('Login / return URL redirects', () => {
|
|
253
|
+
it.only('should not add the active repository to the login page URL', () => {
|
|
254
|
+
cy.presetRepository(repoName);
|
|
255
|
+
UserAndAccessSteps.visit();
|
|
256
|
+
cy.url().should('include', `repositoryId=${repoName}`);
|
|
257
|
+
|
|
258
|
+
UserAndAccessSteps.toggleSecurity();
|
|
259
|
+
|
|
260
|
+
cy.url()
|
|
261
|
+
.should('include', '/login')
|
|
262
|
+
.and('not.include', 'repositoryId=');
|
|
263
|
+
});
|
|
264
|
+
|
|
253
265
|
it('should redirect to previous page after logout and then login', () => {
|
|
254
266
|
UserAndAccessSteps.toggleSecurity();
|
|
255
267
|
LoginSteps.loginWithUser('admin', DEFAULT_ADMIN_PASSWORD);
|
|
@@ -687,22 +699,24 @@ describe('User and Access', () => {
|
|
|
687
699
|
// with manage permission are not allowed to set the default repository.
|
|
688
700
|
RepositorySteps.getSetDefaultRepositoryButton(manageRepositoryId).should('not.exist');
|
|
689
701
|
|
|
702
|
+
// And should see the copy action for all repositories.
|
|
703
|
+
RepositorySteps.getCopyRepositoryButton(writeRepositoryId).should('be.visible');
|
|
704
|
+
RepositorySteps.getCopyRepositoryButton(readRepositoryId).should('be.visible');
|
|
705
|
+
RepositorySteps.getCopyRepositoryButton(graphQLOnlyRepositoryId).should('be.visible');
|
|
706
|
+
|
|
690
707
|
// And no repository management actions should be available for the other repositories.
|
|
691
|
-
RepositorySteps.getCopyRepositoryButton(readRepositoryId).should('not.exist');
|
|
692
708
|
RepositorySteps.getEditRepositoryButton(readRepositoryId).should('not.exist');
|
|
693
709
|
RepositorySteps.getDownloadRepositoryConfigurationButton(readRepositoryId).should('not.exist');
|
|
694
710
|
RepositorySteps.getRestartRepositoryButton(readRepositoryId).should('not.exist');
|
|
695
711
|
RepositorySteps.getDeleteRepositoryButton(readRepositoryId).should('not.exist');
|
|
696
712
|
RepositorySteps.getSetDefaultRepositoryButton(readRepositoryId).should('not.exist');
|
|
697
713
|
|
|
698
|
-
RepositorySteps.getCopyRepositoryButton(writeRepositoryId).should('not.exist');
|
|
699
714
|
RepositorySteps.getEditRepositoryButton(writeRepositoryId).should('not.exist');
|
|
700
715
|
RepositorySteps.getDownloadRepositoryConfigurationButton(writeRepositoryId).should('not.exist');
|
|
701
716
|
RepositorySteps.getRestartRepositoryButton(writeRepositoryId).should('not.exist');
|
|
702
717
|
RepositorySteps.getDeleteRepositoryButton(writeRepositoryId).should('not.exist');
|
|
703
718
|
RepositorySteps.getSetDefaultRepositoryButton(writeRepositoryId).should('not.exist');
|
|
704
719
|
|
|
705
|
-
RepositorySteps.getCopyRepositoryButton(graphQLOnlyRepositoryId).should('not.exist');
|
|
706
720
|
RepositorySteps.getEditRepositoryButton(graphQLOnlyRepositoryId).should('not.exist');
|
|
707
721
|
RepositorySteps.getDownloadRepositoryConfigurationButton(graphQLOnlyRepositoryId).should('not.exist');
|
|
708
722
|
RepositorySteps.getRestartRepositoryButton(graphQLOnlyRepositoryId).should('not.exist');
|