graphdb-workbench-tests 3.4.1-RC5 → 3.4.1-RC7

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.
@@ -7,6 +7,10 @@ describe('TTYG agent select menu', () => {
7
7
 
8
8
  const repositoryId = 'starwars';
9
9
 
10
+ before(() => {
11
+ cy.clearLocalStorage('ls.ttyg');
12
+ });
13
+
10
14
  beforeEach(() => {
11
15
  RepositoriesStubs.stubRepositories(0, '/repositories/get-ttyg-repositories.json');
12
16
  RepositoriesStubs.stubBaseEndpoints(repositoryId);
@@ -91,6 +95,7 @@ describe('TTYG agent select menu', () => {
91
95
  TTYGViewSteps.triggerDeleteAgentActionMenu(0);
92
96
  ModalDialogSteps.confirm();
93
97
  ModalDialogSteps.getDialog().should('not.exist');
98
+ cy.wait('@delete-agent');
94
99
  // TODO: the agents list filter brakes after deleting an agent!!!
95
100
  TTYGViewSteps.selectAllAgentsFilter();
96
101
  TTYGViewSteps.getAgents().should('have.length', 3);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "graphdb-workbench-tests",
3
- "version": "3.4.1-RC5",
3
+ "version": "3.4.1-RC7",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "graphdb-workbench-tests",
9
- "version": "3.4.1-RC5",
9
+ "version": "3.4.1-RC7",
10
10
  "license": "Apache-2.0",
11
11
  "devDependencies": {
12
12
  "@bahmutov/cypress-code-coverage": "^2.7.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphdb-workbench-tests",
3
- "version": "3.4.1-RC5",
3
+ "version": "3.4.1-RC7",
4
4
  "description": "Cypress tests for GraphDB workbench",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -18,7 +18,7 @@
18
18
  "cy:run-legacy:coverage": "cypress run --config-file cypress-legacy.config.js --browser chrome",
19
19
  "cy:run-flaky": "cypress run --config-file cypress-flaky.config.js --browser chrome",
20
20
  "test": "npm run cy:run-legacy",
21
- "test:core": "cypress run --config-file cypress-core.config.js",
21
+ "test:core": "cypress run --spec e2e-legacy/repository/**,e2e-legacy/import/**,e2e-legacy/sparql-editor/**,e2e-legacy/monitor/**,e2e-legacy/cluster/**,e2e-legacy/ttyg/**",
22
22
  "lint": "eslint '**/*.{js,mjs,cjs}'"
23
23
  },
24
24
  "author": {
@@ -1,45 +0,0 @@
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
- video: false,
16
- defaultCommandTimeout: 25000,
17
- numTestsKeptInMemory: 10,
18
- viewportWidth: 1600,
19
- viewportHeight: 1200,
20
- e2e: {
21
- retries: {
22
- runMode: 2,
23
- openMode: 0
24
- },
25
- // We've imported your old cypress plugins here.
26
- // You may want to clean this up later by importing these.
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/repository/**', 'e2e-legacy/import/**', 'e2e-legacy/sparql-editor/**', 'e2e-legacy/monitor/**', 'e2e-legacy/cluster/**', 'e2e-legacy/ttyg/**'],
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
- });