Closed Bug 1096920 Opened 10 years ago Closed 10 years ago

Add test to delete entire call log when it has several calls, All tab

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: RobertC, Assigned: RobertC)

Details

Attachments

(1 file)

https://moztrap.mozilla.org/manage/case/2267/

Dialer-Call Log Edit Mode: As a user I can delete the entire call log.

Prerequisites:
a. Have several calls made to the test device.

    Launch the Dialer app and open the Call Log to the All tab.

    Tap on the Edit button in the top right corner of the screen.

    Verify that the call log is now in Edit mode where calls can be deleted.

    Tap the Select All button in the Call log.

    Verify that all the calls in the call log are selected with check marks.

    Tap the Delete button and confirm the action.

    Verify the operation is performed and no calls are left in the Call log.
QA Whiteboard: [fxosqa-auto-s4]
Comment on attachment 8525308 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/26291

I didn't notice one thing in my last review: I think we can put the formatting of the date in the mock class. See comments in PR.
Attachment #8525308 - Flags: review?(jlorenzo) → review-
Comment on attachment 8525308 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/26291

Ok, waiting on an updated PR that addresses review comments from jlorenzo.
Attachment #8525308 - Flags: review?(martijn.martijn) → review-
Comment on attachment 8525308 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/26291

I updated the PR
Attachment #8525308 - Flags: review?(martijn.martijn)
Attachment #8525308 - Flags: review?(jlorenzo)
Attachment #8525308 - Flags: review-
Comment on attachment 8525308 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/26291

Looks good to me.
Attachment #8525308 - Flags: review?(jlorenzo) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Robert, could you file a follow-up bug, about the time.sleep(1) workaround?
It should have been possible to write something like this:
self.marionette.execute_async_script('window.wrappedJSObject.CallLogDBManager.add(%s, function() {marionetteScriptFinished()});' % (json.dumps(call)))
..inside def insert_call_entry, so you would not have to use the time.sleep(1) function below.

We should figure out why it doesn't work, ideally.
Flags: needinfo?(robert.chira)
I created Bug 1105168 for this.
Flags: needinfo?(robert.chira)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: