Get help with testing, discuss unit testing strategies etc.


Post by nfrias »

Hi all,

I am unable to correctly record a typing action when the text includes square brackets.

When I type the brackets directly they are omitted when the test is executed. When I attempt to escape the brackets they are typed but the escaping character is also typed. Please consider the following examples:

{ type : "[test] ", target : "#searchMenu => .x-form-text" }   # Result: test

# Escaped brackets
{ type : "\[test\] ", target : "#searchMenu => .x-form-text" }   # Result: \[test\] 

# Brackets preceded by . # / . \ or space
{ type : ".[test.]", target : "#searchMenu => .x-form-text" }    # Result: .[test.]

Note: being able to type square brackets is very relevant since the application I am testing allows for search using Regexp.

Thanks in advance.
Last edited by nfrias on Sat Jul 22, 2017 9:46 pm, edited 1 time in total.

Post by nickolay »

Hi,

Thanks for the report, we'll fix this promptly.

In the mean time, as a workaround, please split your typing in 2 actions - lets say one for "[test" and 2nd for "]" or similar.

Post by nickolay »

Fixed in the sources, you can verify in the tomorrow nightly build.

Post by nfrias »

Thanks for the fast resolution.

Post Reply