Merge lp:~elopio/ubuntu-ui-toolkit/98-DeprecateHeader-autopilot into lp:~tpeeters/ubuntu-ui-toolkit/98-DeprecateHeader
Proposed by
Leo Arias
Status: | Merged |
---|---|
Merged at revision: | 1105 |
Proposed branch: | lp:~elopio/ubuntu-ui-toolkit/98-DeprecateHeader-autopilot |
Merge into: | lp:~tpeeters/ubuntu-ui-toolkit/98-DeprecateHeader |
Diff against target: |
197 lines (+82/-6) 7 files modified
modules/Ubuntu/Components/Header.qml (+5/-0) tests/autopilot/ubuntuuitoolkit/__init__.py (+4/-2) tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/__init__.py (+6/-2) tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_header.py (+11/-0) tests/autopilot/ubuntuuitoolkit/emulators.py (+2/-2) tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_header.DeprecatedHeaderTestCase.qml (+27/-0) tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_header.py (+27/-0) |
To merge this branch: | bzr merge lp:~elopio/ubuntu-ui-toolkit/98-DeprecateHeader-autopilot |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tim Peeters | Approve | ||
Review via email: mp+221956@code.launchpad.net |
Commit message
Added an autoiplot helper for the deprecated header.
To post a comment you must log in.
Tim, with this we will support people that are still using the deprecated Header, but we will log an additional warning on the autopilot side.
This is pretty ugly:
11 + property string _for_autopilot
but is the only way I know for QML to assign Header to this component. Otherwise it will consider it to be an AppHeader, and autopilot won't be able to distinguish between them.
And related to the existing app tests, they will be safe and won't require a modification if they are using main_view. get_header( ). If they are doing something like select_ single( Header) they will have to be updated. I don't think a lot of applications are doing that, maybe not a single one is doing it, but we have to search the code.