Merge lp:~om26er/ubuntu-calendar-app/robust_test into lp:~pkunal-parmar/ubuntu-calendar-app/newtabs_dayview
Proposed by
Omer Akram
Status: | Merged |
---|---|
Approved by: | Kunal Parmar |
Approved revision: | 98 |
Merged at revision: | 100 |
Proposed branch: | lp:~om26er/ubuntu-calendar-app/robust_test |
Merge into: | lp:~pkunal-parmar/ubuntu-calendar-app/newtabs_dayview |
Diff against target: |
64 lines (+8/-3) 3 files modified
DayView.qml (+1/-0) tests/autopilot/calendar_app/emulators/main_view.py (+1/-1) tests/autopilot/calendar_app/tests/test_calendar.py (+6/-2) |
To merge this branch: | bzr merge lp:~om26er/ubuntu-calendar-app/robust_test |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Kunal Parmar | Approve | ||
Review via email: mp+181839@code.launchpad.net |
Commit message
fixes the failing test for the calendar app
Description of the change
fastens the tests, does not fix it. I have tried hard but cannot fix it the test. The calendar app needs to expose the properties of the newly created event so that we could test.
To post a comment you must log in.
looks good,
Can you check, what's wrong with following
Here, timeline_ base.eventCount is always returning 0, where in QML is gets updates after sometime.
Is there way to overcome this ?
def event_count_ for_dayview( self): view.get_ day_view( )
self.assertTha t(lambda: day_view, Eventually( Not(Is( None))) )
#retuns event count for dayview
day_view = self.main_
path_base = day_view. select_ single( "PathViewBase" ,
objectName= "DayViewPathBas e")
current_ index = path_base. currentIndex
#print( "Comp Name:" , com_name)
day_component = path_base. select_ single( "DayComponent" ,
objectNam e=com_name)
self.assertTha t(lambda: day_component, Eventually( Not(Is( None))) )
com_name = "DayComponent-" + str(current_index)
return (timeline_