Merge lp://qastaging/~vrruiz/gallery-app/autopilot-app-class into lp://qastaging/gallery-app
Status: | Needs review | ||||
---|---|---|---|---|---|
Proposed branch: | lp://qastaging/~vrruiz/gallery-app/autopilot-app-class | ||||
Merge into: | lp://qastaging/gallery-app | ||||
Diff against target: |
2084 lines (+720/-698) 9 files modified
tests/autopilot/gallery_app/__init__.py (+415/-0) tests/autopilot/gallery_app/tests/__init__.py (+6/-280) tests/autopilot/gallery_app/tests/test_album_editor.py (+34/-54) tests/autopilot/gallery_app/tests/test_album_view.py (+55/-56) tests/autopilot/gallery_app/tests/test_albums_view.py (+11/-19) tests/autopilot/gallery_app/tests/test_events_view.py (+41/-53) tests/autopilot/gallery_app/tests/test_photo_viewer.py (+102/-156) tests/autopilot/gallery_app/tests/test_photos_view.py (+35/-48) tests/autopilot/gallery_app/tests/test_picker_mode.py (+21/-32) |
||||
To merge this branch: | bzr merge lp://qastaging/~vrruiz/gallery-app/autopilot-app-class | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot | continuous-integration | Needs Fixing | |
Leo Arias (community) | Needs Fixing | ||
Review via email: mp+222667@code.qastaging.launchpad.net |
Commit message
Create a class to drive the UI, and refactor test cases to use it.
Description of the change
Create a class to drive the UI, and refactor test cases to use it.
Unmerged revisions
- 999. By Víctor R. Ruiz
-
Merge with trunk
- 998. By Víctor R. Ruiz
-
Autopilot: Refactor for app class pattern (test_picker_mode)
- 997. By Víctor R. Ruiz
-
Autopilot: Refactor for app class pattern (test_photos_view)
- 996. By Víctor R. Ruiz
-
Autopilot: Refactor for app class pattern (test_photo_viewer)
- 995. By Víctor R. Ruiz
-
Autopilot: Refactor for app class pattern (test_events_view)
- 994. By Víctor R. Ruiz
-
Autopilot: Refactor for app class pattern (test_album_view)
- 993. By Víctor R. Ruiz
-
Autopilot: Refactor for app class pattern (test_albums_view)
- 992. By Víctor R. Ruiz
-
Autopilot: Refactor for app class pattern (test_albums_view)
- 991. By Víctor R. Ruiz
-
Autopilot: Refactor for app class pattern (test_album_editor)
- 990. By Víctor R. Ruiz
-
Autopilot: Refactoring for app class pattern
One thing to think about: the UI-driver methods were moved from the case classes to GalleryApp. The problem is that some of them use asserts, that make sense as part of tests, but not so much a pure UI test. Right now, it's not a big deal, because the test_case is a required argument to instantiate GalleryApp, but in the medium term, we won't have it.