action #49943
Updated by dheidler about 6 years ago
Currently the testapi function `assert_and_click` is using the last area of a needle with `type=match` to click. When there are multiple areas in a needle they can easily mixed up - especially as there is no indication in the needle editor showing which area is the last one. Therefore a new type of area with `type=click` should be added. When such an area is present, only this area should be used for clicking. Other than that it should behave like `type=match` areas. When using `assert_screen` then there shouldn't be a difference between `type=match` and `type=click` areas. A needle must not have more than one area with `type=click` `type=match` - the needle testsuite will be adapted to fail otherwise. ## Acceptance Criterias * **AC1**: The needle editor in the webui can handle such areas * Idea: Replace the unused (and also not even working) yellow ocr areas with click areas in the editor * **AC2**: In `assert_and_click` if there is a `type=click` area present in a needle then this area is used. * **AC3**: In `assert_and_click` if there is NO `type=click` area present in a needle the current behavior doesn't change for backwards compatibility.