graphdb-workbench-tests 3.4.1-RC3 → 3.4.1-RC5
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
|
+
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
|
+
});
|
|
@@ -32,7 +32,7 @@ describe('Readonly saved query', () => {
|
|
|
32
32
|
});
|
|
33
33
|
|
|
34
34
|
it('Should not allow modifying a saved query if it is readonly', () => {
|
|
35
|
-
SparqlEditorSteps.visitSparqlEditorPage()
|
|
35
|
+
SparqlEditorSteps.visitSparqlEditorPage();
|
|
36
36
|
// Given: There is a public saved query created by a user.
|
|
37
37
|
LoginSteps.loginWithUser(USER_NAME, PASSWORD);
|
|
38
38
|
YasguiSteps.getYasgui().should('be.visible');
|
|
@@ -145,8 +145,8 @@ describe('TTYG edit an agent', () => {
|
|
|
145
145
|
|
|
146
146
|
it('should show Context size if not openai-assistants API', () => {
|
|
147
147
|
// Open TTYG page and select first agent
|
|
148
|
-
TTYGViewSteps.visit();
|
|
149
148
|
TTYGStubs.stubForApiType('default');
|
|
149
|
+
TTYGViewSteps.visit();
|
|
150
150
|
cy.wait('@get-agent-list');
|
|
151
151
|
TTYGViewSteps.openAgentSettingsModalForAgent(0);
|
|
152
152
|
|
|
@@ -168,8 +168,8 @@ describe('TTYG edit an agent', () => {
|
|
|
168
168
|
|
|
169
169
|
it('should NOT show Context size if openai-assistants API', () => {
|
|
170
170
|
// Open TTYG page and select first agent
|
|
171
|
-
TTYGViewSteps.visit();
|
|
172
171
|
TTYGStubs.stubForApiType('assistants');
|
|
172
|
+
TTYGViewSteps.visit();
|
|
173
173
|
cy.wait('@get-agent-list');
|
|
174
174
|
TTYGViewSteps.openAgentSettingsModalForAgent(0);
|
|
175
175
|
// Then I should see the Context size field
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphdb-workbench-tests",
|
|
3
|
-
"version": "3.4.1-
|
|
3
|
+
"version": "3.4.1-RC5",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "graphdb-workbench-tests",
|
|
9
|
-
"version": "3.4.1-
|
|
9
|
+
"version": "3.4.1-RC5",
|
|
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-
|
|
3
|
+
"version": "3.4.1-RC5",
|
|
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 --
|
|
21
|
+
"test:core": "cypress run --config-file cypress-core.config.js",
|
|
22
22
|
"lint": "eslint '**/*.{js,mjs,cjs}'"
|
|
23
23
|
},
|
|
24
24
|
"author": {
|