diff --git a/packages/react-codemirror/src/e2e_tests/signature-help.spec.tsx b/packages/react-codemirror/src/e2e_tests/signature-help.spec.tsx
index 95e86b18f..6bb028e94 100644
--- a/packages/react-codemirror/src/e2e_tests/signature-help.spec.tsx
+++ b/packages/react-codemirror/src/e2e_tests/signature-help.spec.tsx
@@ -89,14 +89,14 @@ test('Signature help shows the description for the first argument', async ({
});
});
-test('Signature help works when the parenthesis has been auto closed and the cursor is placed before )', async ({
+test('Signature help shows the description for the first argument when the cursor is at that position', async ({
page,
mount,
}) => {
const query = 'CALL apoc.import.csv()';
await mount(
- ,
+ ,
);
const tooltip = page.locator('.cm-tooltip-signature-help').last();
@@ -133,6 +133,46 @@ test('Signature help shows the description for the second argument', async ({
});
});
+test('Signature help shows the description for the second argument when the cursor is at that position', async ({
+ page,
+ mount,
+}) => {
+ const query = 'CALL apoc.import.csv(nodes,)';
+
+ await mount(
+ ,
+ );
+
+ const tooltip = page.locator('.cm-tooltip-signature-help').last();
+
+ await testTooltip(tooltip, {
+ includes: [
+ 'rels :: LIST