Closed Bug 947863 Opened 11 years ago Closed 11 years ago

Investigate which sanity checks can be added for the dialer with marionette-js

Categories

(Firefox OS Graveyard :: Gaia::Dialer, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: etienne, Assigned: etienne)

Details

Attachments

(1 file)

Since most of the dialer code rely on mozTelephony, which is available only to on-device tests [1], we're notoriously bad integration test wise.

That said, we should still be able to cover the simple tab navigation and maybe the keypad without having to modify the dialer code just for the tests.

It's not much, but it could prevent disasters [1] :)

[1] bug 943779
Are you saying we should write some marionnette JS tests?
(In reply to Anthony Ricaud (:rik) from comment #1)
> Are you saying we should write some marionnette JS tests?

Yep, see what we can cover without modifying the app with a bunch of b2g-desktop only code.
So probably the basic navigation and maybe the keypad.

Better than nothing, especially since we won't get on-device pre-landing tests run in the foreseeable future.
Doesn't the emulator has support for emulating SIM card and telephony ?
We don't have any test infrastructure supporting the emulator AFAIK.
Attached file Gaia PR
Keypad and navigation tests.
Assignee: nobody → etienne
Attachment #8348316 - Flags: review?(ferjmoreno)
Yay... it's red... (looking)
Comment on attachment 8348316 [details]
Gaia PR

clearing the r? until I get this to run properly on travis
Attachment #8348316 - Flags: review?(ferjmoreno)
Comment on attachment 8348316 [details]
Gaia PR

Yay cleaner code and tests reliably passing!

I'll make them run a few times more to make sure we're not adding intermittents but it's ready for review!
Attachment #8348316 - Flags: review?(ferjmoreno)
Attachment #8348316 - Attachment is patch: true
Attachment #8348316 - Attachment mime type: text/x-github-pull-request → text/plain
Comment on attachment 8348316 [details]
Gaia PR

Thanks Etienne! It looks great!

Can we also add:

- A test for the deletion of one number with a single tap in the delete key.
- A test for a long key press in the '0' key.

to the keypad tests, please?
Attachment #8348316 - Attachment is patch: false
Attachment #8348316 - Flags: review?(ferjmoreno)
(In reply to Fernando Jiménez Moreno [:ferjm] (use needinfo instead of CC, please) from comment #9)
> Comment on attachment 8348316 [details]
> Gaia PR
> 
> Thanks Etienne! It looks great!
> 
> Can we also add:
> 
> - A test for the deletion of one number with a single tap in the delete key.
> - A test for a long key press in the '0' key.
> 
> to the keypad tests, please?

Yes! on it.
Comment on attachment 8348316 [details]
Gaia PR

updated!
Attachment #8348316 - Flags: review?(ferjmoreno)
Comment on attachment 8348316 [details]
Gaia PR

Thanks!
Attachment #8348316 - Flags: review?(ferjmoreno) → review+
https://github.com/mozilla-b2g/gaia/commit/ee5ee9246d9042561a454e041a533eb1778214db
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: