@neo4j-cypher/react-codemirror 2.0.0-next.22 → 2.0.0-next.24
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/CHANGELOG.md +16 -0
- package/dist/{CypherEditor.js → src/CypherEditor.js} +2 -2
- package/dist/src/CypherEditor.js.map +1 -0
- package/dist/src/CypherEditor.test.js.map +1 -0
- package/dist/src/constants.js.map +1 -0
- package/dist/src/e2e_tests/autoCompletion.spec.js.map +1 -0
- package/dist/src/e2e_tests/configuration.spec.js.map +1 -0
- package/dist/src/e2e_tests/debounce.spec.js.map +1 -0
- package/dist/{e2e_tests → src/e2e_tests}/e2eUtils.d.ts +1 -0
- package/dist/{e2e_tests → src/e2e_tests}/e2eUtils.js +9 -1
- package/dist/src/e2e_tests/e2eUtils.js.map +1 -0
- package/dist/src/e2e_tests/extraKeybindings.spec.js.map +1 -0
- package/dist/src/e2e_tests/historyNavigation.spec.js.map +1 -0
- package/dist/{e2e_tests → src/e2e_tests}/performanceTest.spec.js +1 -1
- package/dist/src/e2e_tests/performanceTest.spec.js.map +1 -0
- package/dist/src/e2e_tests/sanityChecks.spec.js.map +1 -0
- package/dist/src/e2e_tests/signatureHelp.spec.js.map +1 -0
- package/dist/src/e2e_tests/snippets.spec.js.map +1 -0
- package/dist/src/e2e_tests/syntaxHighlighting.spec.js.map +1 -0
- package/dist/{e2e_tests → src/e2e_tests}/syntaxValidation.spec.js +20 -9
- package/dist/src/e2e_tests/syntaxValidation.spec.js.map +1 -0
- package/dist/src/historyNavigation.js.map +1 -0
- package/dist/src/icons.js.map +1 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/lang-cypher/autocomplete.js.map +1 -0
- package/dist/src/lang-cypher/constants.js.map +1 -0
- package/dist/src/lang-cypher/contants.test.js.map +1 -0
- package/dist/{lang-cypher → src/lang-cypher}/createCypherTheme.js +1 -0
- package/dist/src/lang-cypher/createCypherTheme.js.map +1 -0
- package/dist/src/lang-cypher/langCypher.js.map +1 -0
- package/dist/src/lang-cypher/lintWorker.mjs +2004 -0
- package/dist/src/lang-cypher/parser-adapter.js.map +1 -0
- package/dist/src/lang-cypher/signatureHelp.js.map +1 -0
- package/dist/{lang-cypher → src/lang-cypher}/syntaxValidation.js +1 -1
- package/dist/src/lang-cypher/syntaxValidation.js.map +1 -0
- package/dist/src/lang-cypher/themeIcons.js.map +1 -0
- package/dist/src/lang-cypher/utils.js.map +1 -0
- package/dist/src/ndlTokensCopy.js.map +1 -0
- package/dist/src/ndlTokensCopy.test.js.map +1 -0
- package/dist/src/neo4jSetup.js.map +1 -0
- package/dist/src/themes.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -7
- package/src/CypherEditor.tsx +2 -2
- package/src/e2e_tests/e2eUtils.ts +17 -1
- package/src/e2e_tests/performanceTest.spec.tsx +1 -1
- package/src/e2e_tests/syntaxValidation.spec.tsx +28 -9
- package/src/lang-cypher/createCypherTheme.ts +1 -0
- package/src/lang-cypher/lintWorker.mjs +2004 -0
- package/src/lang-cypher/syntaxValidation.ts +3 -2
- package/dist/CypherEditor.js.map +0 -1
- package/dist/CypherEditor.test.js.map +0 -1
- package/dist/constants.js.map +0 -1
- package/dist/e2e_tests/autoCompletion.spec.js.map +0 -1
- package/dist/e2e_tests/configuration.spec.js.map +0 -1
- package/dist/e2e_tests/debounce.spec.js.map +0 -1
- package/dist/e2e_tests/e2eUtils.js.map +0 -1
- package/dist/e2e_tests/extraKeybindings.spec.js.map +0 -1
- package/dist/e2e_tests/historyNavigation.spec.js.map +0 -1
- package/dist/e2e_tests/performanceTest.spec.js.map +0 -1
- package/dist/e2e_tests/sanityChecks.spec.js.map +0 -1
- package/dist/e2e_tests/signatureHelp.spec.js.map +0 -1
- package/dist/e2e_tests/snippets.spec.js.map +0 -1
- package/dist/e2e_tests/syntaxHighlighting.spec.js.map +0 -1
- package/dist/e2e_tests/syntaxValidation.spec.js.map +0 -1
- package/dist/historyNavigation.js.map +0 -1
- package/dist/icons.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lang-cypher/autocomplete.js.map +0 -1
- package/dist/lang-cypher/constants.js.map +0 -1
- package/dist/lang-cypher/contants.test.js.map +0 -1
- package/dist/lang-cypher/createCypherTheme.js.map +0 -1
- package/dist/lang-cypher/langCypher.js.map +0 -1
- package/dist/lang-cypher/lintWorker.d.ts +0 -12
- package/dist/lang-cypher/lintWorker.js +0 -14
- package/dist/lang-cypher/lintWorker.js.map +0 -1
- package/dist/lang-cypher/parser-adapter.js.map +0 -1
- package/dist/lang-cypher/signatureHelp.js.map +0 -1
- package/dist/lang-cypher/syntaxValidation.js.map +0 -1
- package/dist/lang-cypher/themeIcons.js.map +0 -1
- package/dist/lang-cypher/utils.js.map +0 -1
- package/dist/ndlTokensCopy.js.map +0 -1
- package/dist/ndlTokensCopy.test.js.map +0 -1
- package/dist/neo4jSetup.js.map +0 -1
- package/dist/themes.js.map +0 -1
- package/src/lang-cypher/lintWorker.ts +0 -31
- /package/dist/{CypherEditor.d.ts → src/CypherEditor.d.ts} +0 -0
- /package/dist/{CypherEditor.test.d.ts → src/CypherEditor.test.d.ts} +0 -0
- /package/dist/{CypherEditor.test.js → src/CypherEditor.test.js} +0 -0
- /package/dist/{constants.d.ts → src/constants.d.ts} +0 -0
- /package/dist/{constants.js → src/constants.js} +0 -0
- /package/dist/{e2e_tests → src/e2e_tests}/autoCompletion.spec.d.ts +0 -0
- /package/dist/{e2e_tests → src/e2e_tests}/autoCompletion.spec.js +0 -0
- /package/dist/{e2e_tests → src/e2e_tests}/configuration.spec.d.ts +0 -0
- /package/dist/{e2e_tests → src/e2e_tests}/configuration.spec.js +0 -0
- /package/dist/{e2e_tests → src/e2e_tests}/debounce.spec.d.ts +0 -0
- /package/dist/{e2e_tests → src/e2e_tests}/debounce.spec.js +0 -0
- /package/dist/{e2e_tests → src/e2e_tests}/extraKeybindings.spec.d.ts +0 -0
- /package/dist/{e2e_tests → src/e2e_tests}/extraKeybindings.spec.js +0 -0
- /package/dist/{e2e_tests → src/e2e_tests}/historyNavigation.spec.d.ts +0 -0
- /package/dist/{e2e_tests → src/e2e_tests}/historyNavigation.spec.js +0 -0
- /package/dist/{e2e_tests → src/e2e_tests}/performanceTest.spec.d.ts +0 -0
- /package/dist/{e2e_tests → src/e2e_tests}/sanityChecks.spec.d.ts +0 -0
- /package/dist/{e2e_tests → src/e2e_tests}/sanityChecks.spec.js +0 -0
- /package/dist/{e2e_tests → src/e2e_tests}/signatureHelp.spec.d.ts +0 -0
- /package/dist/{e2e_tests → src/e2e_tests}/signatureHelp.spec.js +0 -0
- /package/dist/{e2e_tests → src/e2e_tests}/snippets.spec.d.ts +0 -0
- /package/dist/{e2e_tests → src/e2e_tests}/snippets.spec.js +0 -0
- /package/dist/{e2e_tests → src/e2e_tests}/syntaxHighlighting.spec.d.ts +0 -0
- /package/dist/{e2e_tests → src/e2e_tests}/syntaxHighlighting.spec.js +0 -0
- /package/dist/{e2e_tests → src/e2e_tests}/syntaxValidation.spec.d.ts +0 -0
- /package/dist/{historyNavigation.d.ts → src/historyNavigation.d.ts} +0 -0
- /package/dist/{historyNavigation.js → src/historyNavigation.js} +0 -0
- /package/dist/{icons.d.ts → src/icons.d.ts} +0 -0
- /package/dist/{icons.js → src/icons.js} +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{index.js → src/index.js} +0 -0
- /package/dist/{lang-cypher → src/lang-cypher}/autocomplete.d.ts +0 -0
- /package/dist/{lang-cypher → src/lang-cypher}/autocomplete.js +0 -0
- /package/dist/{lang-cypher → src/lang-cypher}/constants.d.ts +0 -0
- /package/dist/{lang-cypher → src/lang-cypher}/constants.js +0 -0
- /package/dist/{lang-cypher → src/lang-cypher}/contants.test.d.ts +0 -0
- /package/dist/{lang-cypher → src/lang-cypher}/contants.test.js +0 -0
- /package/dist/{lang-cypher → src/lang-cypher}/createCypherTheme.d.ts +0 -0
- /package/dist/{lang-cypher → src/lang-cypher}/langCypher.d.ts +0 -0
- /package/dist/{lang-cypher → src/lang-cypher}/langCypher.js +0 -0
- /package/dist/{lang-cypher → src/lang-cypher}/parser-adapter.d.ts +0 -0
- /package/dist/{lang-cypher → src/lang-cypher}/parser-adapter.js +0 -0
- /package/dist/{lang-cypher → src/lang-cypher}/signatureHelp.d.ts +0 -0
- /package/dist/{lang-cypher → src/lang-cypher}/signatureHelp.js +0 -0
- /package/dist/{lang-cypher → src/lang-cypher}/syntaxValidation.d.ts +0 -0
- /package/dist/{lang-cypher → src/lang-cypher}/themeIcons.d.ts +0 -0
- /package/dist/{lang-cypher → src/lang-cypher}/themeIcons.js +0 -0
- /package/dist/{lang-cypher → src/lang-cypher}/utils.d.ts +0 -0
- /package/dist/{lang-cypher → src/lang-cypher}/utils.js +0 -0
- /package/dist/{ndlTokensCopy.d.ts → src/ndlTokensCopy.d.ts} +0 -0
- /package/dist/{ndlTokensCopy.js → src/ndlTokensCopy.js} +0 -0
- /package/dist/{ndlTokensCopy.test.d.ts → src/ndlTokensCopy.test.d.ts} +0 -0
- /package/dist/{ndlTokensCopy.test.js → src/ndlTokensCopy.test.js} +0 -0
- /package/dist/{neo4jSetup.d.ts → src/neo4jSetup.d.ts} +0 -0
- /package/dist/{neo4jSetup.js → src/neo4jSetup.js} +0 -0
- /package/dist/{themes.d.ts → src/themes.d.ts} +0 -0
- /package/dist/{themes.js → src/themes.js} +0 -0
package/package.json
CHANGED
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"codemirror",
|
|
18
18
|
"codemirror 6"
|
|
19
19
|
],
|
|
20
|
-
"version": "2.0.0-next.
|
|
21
|
-
"main": "./dist/index.js",
|
|
22
|
-
"types": "./dist/index.d.ts",
|
|
20
|
+
"version": "2.0.0-next.24",
|
|
21
|
+
"main": "./dist/src/index.js",
|
|
22
|
+
"types": "./dist/src/index.d.ts",
|
|
23
23
|
"type": "module",
|
|
24
24
|
"sideEffects": false,
|
|
25
25
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"engineStrict": true,
|
|
33
33
|
"engines": {
|
|
34
|
-
"node": ">=
|
|
34
|
+
"node": ">=22.15.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@codemirror/autocomplete": "^6.17.0",
|
|
@@ -51,7 +51,8 @@
|
|
|
51
51
|
"style-mod": "^4.1.2",
|
|
52
52
|
"vscode-languageserver-types": "^3.17.3",
|
|
53
53
|
"workerpool": "^9.0.4",
|
|
54
|
-
"@neo4j-cypher/language-support": "2.0.0-next.
|
|
54
|
+
"@neo4j-cypher/language-support": "2.0.0-next.21",
|
|
55
|
+
"@neo4j-cypher/lint-worker": "2025.4.1-next.0"
|
|
55
56
|
},
|
|
56
57
|
"devDependencies": {
|
|
57
58
|
"@neo4j-ndl/base": "^3.2.10",
|
|
@@ -61,6 +62,7 @@
|
|
|
61
62
|
"@types/react": "^18.0.28",
|
|
62
63
|
"@types/react-dom": "^18.0.11",
|
|
63
64
|
"@vitejs/plugin-react": "^4.3.1",
|
|
65
|
+
"copyfiles": "^2.4.1",
|
|
64
66
|
"jsdom": "^24.1.1",
|
|
65
67
|
"lodash": "^4.17.21",
|
|
66
68
|
"playwright": "^1.51.1",
|
|
@@ -72,8 +74,10 @@
|
|
|
72
74
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
73
75
|
},
|
|
74
76
|
"scripts": {
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
+
"dev": "tsc --watch",
|
|
78
|
+
"build": "pnpm copy-lint-worker && tsc --declaration --outDir dist/",
|
|
79
|
+
"copy-lint-worker": "copyfiles -u 4 ../lint-worker/dist/esm/lintWorker.mjs dist/src/lang-cypher && copyfiles -u 4 ../lint-worker/dist/esm/lintWorker.mjs src/lang-cypher",
|
|
80
|
+
"clean": "rm -rf {dist,tsconfig.tsbuildinfo}",
|
|
77
81
|
"test": "vitest run",
|
|
78
82
|
"test:e2e": "playwright test -c playwright-ct.config.ts",
|
|
79
83
|
"test:e2e-ui": "playwright test -c playwright-ct.config.ts --ui",
|
package/src/CypherEditor.tsx
CHANGED
|
@@ -183,12 +183,12 @@ export interface CypherEditorProps {
|
|
|
183
183
|
const format = (view: EditorView): void => {
|
|
184
184
|
try {
|
|
185
185
|
const doc = view.state.doc.toString();
|
|
186
|
-
const {
|
|
186
|
+
const { formattedQuery, newCursorPos } = formatQuery(doc, {cursorPosition: view.state.selection.main.anchor});
|
|
187
187
|
view.dispatch({
|
|
188
188
|
changes: {
|
|
189
189
|
from: 0,
|
|
190
190
|
to: doc.length,
|
|
191
|
-
insert:
|
|
191
|
+
insert: formattedQuery,
|
|
192
192
|
},
|
|
193
193
|
selection: { anchor: newCursorPos },
|
|
194
194
|
});
|
|
@@ -82,7 +82,7 @@ export class CypherEditorPage {
|
|
|
82
82
|
await expect(this.page.locator('.cm-tooltip-hover').last()).toBeVisible({
|
|
83
83
|
timeout: 10000,
|
|
84
84
|
});
|
|
85
|
-
await
|
|
85
|
+
await this.checkHoverMessage(expectedMsg, type);
|
|
86
86
|
/* Return the mouse to the beginning of the query and
|
|
87
87
|
This is because if for example we have an overlay with a
|
|
88
88
|
first interaction that covers the element we want to perform
|
|
@@ -94,4 +94,20 @@ export class CypherEditorPage {
|
|
|
94
94
|
this.page.locator('.cm-tooltip-hover').last(),
|
|
95
95
|
).not.toBeVisible();
|
|
96
96
|
}
|
|
97
|
+
|
|
98
|
+
private async checkHoverMessage(
|
|
99
|
+
expectedMsg: string,
|
|
100
|
+
type: 'error' | 'warning',
|
|
101
|
+
) {
|
|
102
|
+
const locator =
|
|
103
|
+
type === 'error'
|
|
104
|
+
? 'li.cm-diagnostic.cm-diagnostic-error'
|
|
105
|
+
: 'li.cm-diagnostic.cm-diagnostic-warning';
|
|
106
|
+
const tooltips = await this.page.locator(locator).all();
|
|
107
|
+
|
|
108
|
+
const tooltipTexts = await Promise.all(
|
|
109
|
+
tooltips.map((t) => t.textContent()),
|
|
110
|
+
);
|
|
111
|
+
expect(tooltipTexts).toContain(expectedMsg);
|
|
112
|
+
}
|
|
97
113
|
}
|
|
@@ -100,7 +100,7 @@ test('benchmarking & performance test session', async ({
|
|
|
100
100
|
|
|
101
101
|
await editorPage.checkErrorMessage(
|
|
102
102
|
'RETRN',
|
|
103
|
-
`Invalid input 'RETRN': expected a graph pattern, '
|
|
103
|
+
`Invalid input 'RETRN': expected a graph pattern, ',', 'ORDER BY', 'CALL', 'CREATE', 'LOAD CSV', 'DELETE', 'DETACH', 'FINISH', 'FOREACH', 'INSERT', 'LIMIT', 'MATCH', 'MERGE', 'NODETACH', 'OFFSET', 'OPTIONAL', 'REMOVE', 'RETURN', 'SET', 'SKIP', 'UNION', 'UNWIND', 'USE', 'USING', 'WHERE', 'WITH' or <EOF>`,
|
|
104
104
|
);
|
|
105
105
|
|
|
106
106
|
await editorPage
|
|
@@ -33,7 +33,7 @@ test('Can turn linting back on', async ({ page, mount }) => {
|
|
|
33
33
|
|
|
34
34
|
await editorPage.checkErrorMessage(
|
|
35
35
|
'METCH',
|
|
36
|
-
`Invalid input 'METCH': expected '
|
|
36
|
+
`Invalid input 'METCH': expected 'ALTER', 'ORDER BY', 'CALL', 'USING PERIODIC COMMIT', 'CREATE', 'LOAD CSV', 'START DATABASE', 'STOP DATABASE', 'DEALLOCATE', 'DELETE', 'DENY', 'DETACH', 'DROP', 'DRYRUN', 'FINISH', 'FOREACH', 'GRANT', 'INSERT', 'LIMIT', 'MATCH', 'MERGE', 'NODETACH', 'OFFSET', 'OPTIONAL', 'REALLOCATE', 'REMOVE', 'RENAME', 'RETURN', 'REVOKE', 'ENABLE SERVER', 'SET', 'SHOW', 'SKIP', 'TERMINATE', 'UNWIND', 'USE' or 'WITH'`,
|
|
37
37
|
);
|
|
38
38
|
});
|
|
39
39
|
|
|
@@ -45,7 +45,7 @@ test('Syntactic errors are surfaced', async ({ page, mount }) => {
|
|
|
45
45
|
|
|
46
46
|
await editorPage.checkErrorMessage(
|
|
47
47
|
'METCH',
|
|
48
|
-
`Invalid input 'METCH': expected '
|
|
48
|
+
`Invalid input 'METCH': expected 'ALTER', 'ORDER BY', 'CALL', 'USING PERIODIC COMMIT', 'CREATE', 'LOAD CSV', 'START DATABASE', 'STOP DATABASE', 'DEALLOCATE', 'DELETE', 'DENY', 'DETACH', 'DROP', 'DRYRUN', 'FINISH', 'FOREACH', 'GRANT', 'INSERT', 'LIMIT', 'MATCH', 'MERGE', 'NODETACH', 'OFFSET', 'OPTIONAL', 'REALLOCATE', 'REMOVE', 'RENAME', 'RETURN', 'REVOKE', 'ENABLE SERVER', 'SET', 'SHOW', 'SKIP', 'TERMINATE', 'UNWIND', 'USE' or 'WITH'`,
|
|
49
49
|
);
|
|
50
50
|
});
|
|
51
51
|
|
|
@@ -138,7 +138,7 @@ test('Semantic errors are correctly accumulated', async ({ page, mount }) => {
|
|
|
138
138
|
|
|
139
139
|
await editorPage.checkErrorMessage(
|
|
140
140
|
'-1',
|
|
141
|
-
"Invalid input. '-1' is not a valid value. Must be a positive integer",
|
|
141
|
+
"Invalid input. '-1' is not a valid value. Must be a positive integer.",
|
|
142
142
|
);
|
|
143
143
|
});
|
|
144
144
|
|
|
@@ -153,12 +153,12 @@ test('Multiline errors are correctly placed', async ({ page, mount }) => {
|
|
|
153
153
|
|
|
154
154
|
await editorPage.checkErrorMessage(
|
|
155
155
|
'MATCH (n)',
|
|
156
|
-
'Query cannot conclude with MATCH (must be a RETURN clause, a FINISH clause, an update clause, a unit subquery call, or a procedure call with no YIELD)',
|
|
156
|
+
'Query cannot conclude with MATCH (must be a RETURN clause, a FINISH clause, an update clause, a unit subquery call, or a procedure call with no YIELD).',
|
|
157
157
|
);
|
|
158
158
|
|
|
159
159
|
await editorPage.checkErrorMessage(
|
|
160
160
|
'-1',
|
|
161
|
-
"Invalid input. '-1' is not a valid value. Must be a positive integer",
|
|
161
|
+
"Invalid input. '-1' is not a valid value. Must be a positive integer.",
|
|
162
162
|
);
|
|
163
163
|
});
|
|
164
164
|
|
|
@@ -178,10 +178,28 @@ test('Validation errors are correctly overlapped', async ({ page, mount }) => {
|
|
|
178
178
|
|
|
179
179
|
await editorPage.checkErrorMessage(
|
|
180
180
|
'-1',
|
|
181
|
-
"Invalid input. '-1' is not a valid value. Must be a positive integer",
|
|
181
|
+
"Invalid input. '-1' is not a valid value. Must be a positive integer.",
|
|
182
182
|
);
|
|
183
183
|
});
|
|
184
184
|
|
|
185
|
+
test('Syntax highlighting works as expected with multiple separate linting messages', async ( {
|
|
186
|
+
page,
|
|
187
|
+
mount
|
|
188
|
+
}) => {
|
|
189
|
+
const editorPage = new CypherEditorPage(page);
|
|
190
|
+
const query = `MATCH (n)--(m) CALL (n) {RETURN id(n) AS b} RETURN apoc.create.uuid(), a`;
|
|
191
|
+
|
|
192
|
+
await mount(<CypherEditor value={query} schema={testData.mockSchema} />);
|
|
193
|
+
await expect(
|
|
194
|
+
editorPage.page.locator('.cm-deprecated-element').last(),
|
|
195
|
+
).toBeVisible({ timeout: 10000 });
|
|
196
|
+
await editorPage.checkWarningMessage('id', 'Function id is deprecated.');
|
|
197
|
+
await editorPage.checkWarningMessage('id', `The query used a deprecated function. ('id' has been replaced by 'elementId or an application-generated id')`);
|
|
198
|
+
|
|
199
|
+
await editorPage.checkWarningMessage('apoc.create.uuid', 'Function apoc.create.uuid is deprecated. Alternative: Neo4j randomUUID() function');
|
|
200
|
+
await editorPage.checkErrorMessage('a', 'Variable `a` not defined');
|
|
201
|
+
})
|
|
202
|
+
|
|
185
203
|
test('Strikethroughs are shown for deprecated functions', async ({
|
|
186
204
|
page,
|
|
187
205
|
mount,
|
|
@@ -194,6 +212,7 @@ test('Strikethroughs are shown for deprecated functions', async ({
|
|
|
194
212
|
editorPage.page.locator('.cm-deprecated-element').last(),
|
|
195
213
|
).toBeVisible({ timeout: 10000 });
|
|
196
214
|
await editorPage.checkWarningMessage('id', 'Function id is deprecated.');
|
|
215
|
+
await editorPage.checkErrorMessage('id', `Insufficient parameters for function 'id'`);
|
|
197
216
|
});
|
|
198
217
|
|
|
199
218
|
test('Strikethroughs are shown for deprecated procedures', async ({
|
|
@@ -210,7 +229,7 @@ test('Strikethroughs are shown for deprecated procedures', async ({
|
|
|
210
229
|
|
|
211
230
|
await editorPage.checkWarningMessage(
|
|
212
231
|
'apoc.create.uuids',
|
|
213
|
-
|
|
232
|
+
"Procedure apoc.create.uuids is deprecated. Alternative: Neo4j's randomUUID() function can be used as a replacement, for example: `UNWIND range(0,$count) AS row RETURN row, randomUUID() AS uuid`",
|
|
214
233
|
);
|
|
215
234
|
});
|
|
216
235
|
|
|
@@ -231,13 +250,13 @@ test('Syntax validation depends on the Cypher version', async ({
|
|
|
231
250
|
|
|
232
251
|
await editorPage.checkWarningMessage(
|
|
233
252
|
'apoc.create.uuids',
|
|
234
|
-
|
|
253
|
+
"Procedure apoc.create.uuids is deprecated. Alternative: Neo4j's randomUUID() function can be used as a replacement, for example: `UNWIND range(0,$count) AS row RETURN row, randomUUID() AS uuid`",
|
|
235
254
|
);
|
|
236
255
|
|
|
237
256
|
await textField.fill('CYPHER 25 CALL apoc.create.uuids(5)');
|
|
238
257
|
|
|
239
258
|
await editorPage.checkErrorMessage(
|
|
240
259
|
'apoc.create.uuids',
|
|
241
|
-
|
|
260
|
+
`Procedure apoc.create.uuids is not present in the database. Make sure you didn't misspell it or that it is available when you run this statement in your application`,
|
|
242
261
|
);
|
|
243
262
|
});
|
|
@@ -91,6 +91,7 @@ export const createCypherTheme = ({
|
|
|
91
91
|
'& .cm-panels': {
|
|
92
92
|
backgroundColor: settings.searchPanel.background,
|
|
93
93
|
fontFamily: 'Fira Code, Menlo, Monaco, Lucida Console, monospace',
|
|
94
|
+
zIndex: 0,
|
|
94
95
|
},
|
|
95
96
|
'& .cm-completionLabel': {
|
|
96
97
|
fontFamily: 'Fira Code, Menlo, Monaco, Lucida Console, monospace',
|