graphdb-workbench-tests 3.4.1-TR2 → 3.5.0-MANAGE-REPO-TR1

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.
@@ -0,0 +1,45 @@
1
+ import { defineConfig } from 'cypress';
2
+ import setupPlugins from './plugins/index.js';
3
+
4
+ const isCoverage = process.env.COVERAGE === 'true';
5
+
6
+ const loadCodeCoverage = async (on, config) => {
7
+ const mod = await import('@bahmutov/cypress-code-coverage/plugin');
8
+ const plugin = ('default' in mod) ? mod.default : mod;
9
+ plugin(on, config);
10
+ };
11
+
12
+ export default defineConfig({
13
+ projectId: 'v35btb',
14
+ fixturesFolder: 'fixtures',
15
+ screenshotsFolder: 'report/screenshots',
16
+ videosFolder: 'report/videos',
17
+ video: true,
18
+ defaultCommandTimeout: 25000,
19
+ numTestsKeptInMemory: 10,
20
+ viewportWidth: 1600,
21
+ viewportHeight: 1200,
22
+ e2e: {
23
+ retries: {
24
+ runMode: 2,
25
+ openMode: 0
26
+ },
27
+ async setupNodeEvents(on, config) {
28
+ setupPlugins(on, config);
29
+ if (isCoverage) {
30
+ await loadCodeCoverage(on, config);
31
+ }
32
+ return config;
33
+ },
34
+ baseUrl: 'http://localhost:9000',
35
+ specPattern: 'e2e-legacy/guides/**/*.{js,jsx,ts,tsx}',
36
+ supportFile: 'support/e2e.js',
37
+ reporter: "cypress-multi-reporters",
38
+ reporterOptions: {
39
+ configFile: 'cypress-reporter-config.json'
40
+ }
41
+ },
42
+ env: {
43
+ set_default_user_data: true
44
+ }
45
+ });
@@ -9,8 +9,7 @@ import {GuidesStubs} from "../../../../stubs/guides/guides-stubs.js";
9
9
  import {TTYGStubs} from "../../../../stubs/ttyg/ttyg-stubs.js";
10
10
  import {RepositoriesStubs} from "../../../../stubs/repositories/repositories-stubs.js";
11
11
 
12
- // TODO: there is some issue with the context side field focus that breaks the test. Should be fixed soon
13
- describe.skip('ttyg configure agent guide', () => {
12
+ describe('ttyg configure agent guide', () => {
14
13
  let repositoryId;
15
14
 
16
15
  beforeEach(() => {
@@ -171,7 +171,7 @@ describe('URL with Repository ID parameter', () => {
171
171
  // Given I am on the 404 page which is in the new workbench
172
172
  ErrorPageSteps.visit404();
173
173
  ErrorPageSteps.get404Page().should('be.visible');
174
- cy.url().should('not.include', 'repositoryId=');
174
+ cy.url().should('include', `repositoryId=${repositoryId}`);
175
175
  // When I navigate to some legacy page
176
176
  MainMenuSteps.clickOnSparqlMenu();
177
177
  // Then repositoryId parameter should be preserved in the URL
@@ -19,7 +19,7 @@ describe('ACL Management: create rule', () => {
19
19
  cy.enableAutocomplete(repositoryId);
20
20
  AclManagementSteps.importRules(repositoryId);
21
21
  AclManagementSteps.visit();
22
- ApplicationSteps.geLoader().should('not.exist');
22
+ ApplicationSteps.getLoader().should('not.exist');
23
23
  // ensure rules are rendered
24
24
  AclManagementSteps.getAclRules().should('have.length.gt', 0);
25
25
  });
@@ -19,7 +19,7 @@ describe('ACL Management: delete rule', () => {
19
19
  cy.enableAutocomplete(repositoryId);
20
20
  AclManagementSteps.importRules(repositoryId);
21
21
  AclManagementSteps.visit();
22
- ApplicationSteps.geLoader().should('not.exist');
22
+ ApplicationSteps.getLoader().should('not.exist');
23
23
  // ensure rules are rendered
24
24
  AclManagementSteps.getAclRules().should('have.length.gt', 0);
25
25
  });
@@ -18,7 +18,7 @@ describe('ACL Management: edit rule', () => {
18
18
  cy.enableAutocomplete(repositoryId);
19
19
  AclManagementSteps.importRules(repositoryId);
20
20
  AclManagementSteps.visit();
21
- ApplicationSteps.geLoader().should('not.exist');
21
+ ApplicationSteps.getLoader().should('not.exist');
22
22
  // ensure rules are rendered
23
23
  AclManagementSteps.getAclRules().should('have.length.gt', 0);
24
24
  });
@@ -17,7 +17,7 @@ describe('ACL Management: render rules', () => {
17
17
  cy.presetRepository(repositoryId);
18
18
  cy.initializeRepository(repositoryId);
19
19
  AclManagementSteps.visit();
20
- ApplicationSteps.geLoader().should('not.exist');
20
+ ApplicationSteps.getLoader().should('not.exist');
21
21
  });
22
22
 
23
23
  it('Should render empty ACL rules table', () => {
@@ -17,7 +17,7 @@ describe('ACL Management: reorder rules', () => {
17
17
  cy.initializeRepository(repositoryId);
18
18
  AclManagementSteps.importRules(repositoryId);
19
19
  AclManagementSteps.visit();
20
- ApplicationSteps.geLoader().should('not.exist');
20
+ ApplicationSteps.getLoader().should('not.exist');
21
21
  // ensure rules are rendered
22
22
  AclManagementSteps.getAclRules().should('have.length.gt', 0);
23
23
  });
@@ -18,7 +18,7 @@ describe('ACL Management: revert rules', () => {
18
18
  cy.enableAutocomplete(repositoryId);
19
19
  AclManagementSteps.importRules(repositoryId);
20
20
  AclManagementSteps.visit();
21
- ApplicationSteps.geLoader().should('not.exist');
21
+ ApplicationSteps.getLoader().should('not.exist');
22
22
  // ensure rules are rendered
23
23
  AclManagementSteps.getAclRules().should('have.length.gt', 0);
24
24
  });
@@ -16,7 +16,7 @@ describe('ACL Management: rule scopes', () => {
16
16
  cy.initializeRepository(repositoryId);
17
17
  cy.enableAutocomplete(repositoryId);
18
18
  AclManagementSteps.visit();
19
- ApplicationSteps.geLoader().should('not.exist');
19
+ ApplicationSteps.getLoader().should('not.exist');
20
20
  });
21
21
 
22
22
 
@@ -171,7 +171,7 @@ describe('ACL Management: rule scopes', () => {
171
171
  expect(interception.request.body).to.deep.eq(expectedPayload);
172
172
  });
173
173
 
174
- ApplicationSteps.geLoader().should('not.exist');
174
+ ApplicationSteps.getLoader().should('not.exist');
175
175
  // Then I expect the ACL to be saved
176
176
  ApplicationSteps.getSuccessNotifications().should('be.visible');
177
177
 
@@ -18,7 +18,7 @@ describe('ACL Management: update rules', () => {
18
18
  cy.enableAutocomplete(repositoryId);
19
19
  AclManagementSteps.importRules(repositoryId);
20
20
  AclManagementSteps.visit();
21
- ApplicationSteps.geLoader().should('not.exist');
21
+ ApplicationSteps.getLoader().should('not.exist');
22
22
  // ensure rules are rendered
23
23
  AclManagementSteps.getAclRules().should('have.length.gt', 0);
24
24
  });
@@ -51,7 +51,7 @@ describe('ACL Management: update rules', () => {
51
51
  ModalDialogSteps.clickOnConfirmButton();
52
52
  // And I save the ACL list
53
53
  AclManagementSteps.saveAcl();
54
- ApplicationSteps.geLoader().should('not.exist');
54
+ ApplicationSteps.getLoader().should('not.exist');
55
55
  // Then I expect the ACL to be saved
56
56
  ApplicationSteps.getSuccessNotifications().should('be.visible');
57
57
  AclManagementSteps.getAclRules().should('have.length', 5);
@@ -64,7 +64,7 @@ describe('JDBC configuration', () => {
64
64
  JdbcCreateSteps.clickOnPreviewButton();
65
65
 
66
66
  // Then I expect to see loader,
67
- ApplicationSteps.geLoader().should('contain', 'Preview of first 100 rows of table');
67
+ ApplicationSteps.getLoader().should('contain', 'Preview of first 100 rows of table');
68
68
  // and see the generated preview.
69
69
  YasrSteps.getResults().should('be.visible');
70
70
  });