Closed Bug 944436 Opened 12 years ago Closed 11 years ago

Re-enable set alarm time coverage in test_clock_create_new_alarm.py when Bug 946130 is fixed

Categories

(Firefox OS Graveyard :: Gaia::UI Tests, defect)

Other
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 968741

People

(Reporter: zcampbell, Assigned: viorela)

References

Details

We hadn't realised it but this test can actually be re-enabled. A lot of locators and scroll/flick have rot and need some serious updating.
Assignee: nobody → viorela.ioia
I've been working on this bug for some hours and I believe we shouldn't enable this test. I updated the locators till I got to the step where I have to modify the time (select hour, minute, AM/PM). The update process got really complicated on that step, because we can't use the _current_element method, which returns the selected values of hours, minutes and AM/PM. As we can't use that method, we won't be able to use spin_hour(), spin_seconds() and spin_hour24() either. I tried to use Action chain with flick to change the selected values, but it doesn't work, not even for spin_hour24() method. I couldn't realise what should we use instead of those methods. I will unassign myself, in case someone else has a good idea of how to modify the test and update the locators. Thanks! :)
Assignee: viorela.ioia → nobody
This looks like a Marionette bug now. The action chain should work on those elements, no doubt. Viorela, can you create a reduced test case and file a bug against Marionette?
Sure, Zac.
I can give this a try
Yep no luck I tried every trick I know.... For the future make a TimePicker class in the system app so we can work with those elements more easy
Depends on: 946130
Priority: P1 → --
Priority: -- → P1
Summary: Re-enable test_clock_set_alarm_time.py → Re-enable set alarm time coverage in test_clock_create_new_alarm.py when Bug 946130 is fixed
Since alarm tests were merged the new code is in test_clock_create_new_alarm.py and it needs to be uncommented when Bug 946130 is fixed. https://github.com/mozilla-b2g/gaia/blob/master/tests/python/gaia-ui-tests/gaiatest/tests/functional/clock/test_clock_create_new_alarm.py#L55
Priority: P1 → --
Assignee: nobody → viorela.ioia
Changes for re-enabling set alarm time coverage will be done in Bug 968741
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.