enh(test): update MacroSaver after GUI test API recent changes
Description
The GUI test API changed after changes such as !867 (merged) and !845 (merged). MacroSaver should be updated accordingly in order to generate more readable GUI tests.
Functional specifications
MacroSaver outputs GUI tests compatible with the new API.
Technical specifications
Firstly, the signature of the method ITest::getProfilePath
changed and this change wasn't reflected in MacroSaver. Secondly, we must detect if an interaction can be replaced by one of the method of the new API. For example, if the user push a button, helper::Button::push
must be called instead of manually get the widget with Tester::take
then interacting with it with Tester::interact
. There might be case where this detection isn't trivial.
Test plan
MacroSaver uses the new API, the generated GUI tests still work.