@@ -319,6 +319,35 @@ describe("formula assistant", () => {
319319 expect ( fixture . querySelectorAll ( ".o-formula-assistant-head" ) [ 0 ] . textContent ) . toBe (
320320 "FUNC3 ( f3ArgA, f3ArgB1, [f3ArgB2], ... )"
321321 ) ;
322+
323+ await typeInComposer ( ", ," , false ) ;
324+ expect ( fixture . querySelectorAll ( ".o-formula-assistant-head" ) [ 0 ] . textContent ) . toBe (
325+ "FUNC3 ( f3ArgA, ... , [f3ArgB2], [f3ArgB3], ... )"
326+ ) ;
327+ } ) ;
328+
329+ test ( "function with repeatable argument optional" , async ( ) => {
330+ await typeInComposer ( "=FUNC3BIS(" ) ;
331+ expect ( fixture . querySelectorAll ( ".o-formula-assistant-head" ) [ 0 ] . textContent ) . toBe (
332+ "FUNC3BIS ( f3bisArgA, [f3bisArgB1], [f3bisArgB2], ... )"
333+ ) ;
334+
335+ await typeInComposer ( ", ," , false ) ;
336+ expect ( fixture . querySelectorAll ( ".o-formula-assistant-head" ) [ 0 ] . textContent ) . toBe (
337+ "FUNC3BIS ( f3bisArgA, ... , [f3bisArgB2], [f3bisArgB3], ... )"
338+ ) ;
339+ } ) ;
340+
341+ test ( "function with multiple repeatable arguments" , async ( ) => {
342+ await typeInComposer ( "=UPTOWNFUNC(" ) ;
343+ expect ( fixture . querySelectorAll ( ".o-formula-assistant-head" ) [ 0 ] . textContent ) . toBe (
344+ "UPTOWNFUNC ( f4ArgA, f4ArgB1, f4ArgC1, ... )"
345+ ) ;
346+
347+ await typeInComposer ( ", , ," , false ) ;
348+ expect ( fixture . querySelectorAll ( ".o-formula-assistant-head" ) [ 0 ] . textContent ) . toBe (
349+ "UPTOWNFUNC ( f4ArgA, ... , [f4ArgB2, f4ArgC2], ... )"
350+ ) ;
322351 } ) ;
323352
324353 test ( "arguments separator is localized" , async ( ) => {
0 commit comments