Remove duplicate value in error message for invalid point.
This commit is contained in:
parent
bf562a74fa
commit
39dbf2266f
|
|
@ -229,7 +229,7 @@ def _wrap_find_at_pos(value: str, tab: apitypes.Tab,
|
|||
try:
|
||||
point = utils.parse_point(value)
|
||||
except ValueError as e:
|
||||
message.error(f"'{value}' is not a valid point: {e}")
|
||||
message.error(str(e))
|
||||
return
|
||||
tab.elements.find_at_pos(point, callback)
|
||||
|
||||
|
|
|
|||
|
|
@ -480,12 +480,12 @@ Feature: Various utility commands.
|
|||
Scenario: Clicking an element with invalid position
|
||||
When I open data/click_element.html
|
||||
And I run :click-element position 20.42
|
||||
Then the error "'20.42' is not a valid point: String 20.42 does not match X,Y" should be shown
|
||||
Then the error "String 20.42 does not match X,Y" should be shown
|
||||
|
||||
Scenario: Clicking an element with non-integer position
|
||||
When I open data/click_element.html
|
||||
And I run :click-element position 20,42.001
|
||||
Then the error "'20,42.001' is not a valid point: String 20,42.001 does not match X,Y" should be shown
|
||||
Then the error "String 20,42.001 does not match X,Y" should be shown
|
||||
|
||||
Scenario: Clicking on focused element when there is none
|
||||
When I open data/click_element.html
|
||||
|
|
|
|||
Loading…
Reference in New Issue