Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
46
gaia/apps/communications/dialer/test/marionette/navigation_test.js
Executable file
46
gaia/apps/communications/dialer/test/marionette/navigation_test.js
Executable file
|
|
@ -0,0 +1,46 @@
|
|||
'use strict';
|
||||
var Dialer = require('./lib/dialer');
|
||||
|
||||
marionette('Dialer > Navigation', function() {
|
||||
var assert = require('assert');
|
||||
|
||||
var client = marionette.client(Dialer.config);
|
||||
var subject;
|
||||
var selectors;
|
||||
var actions;
|
||||
|
||||
setup(function() {
|
||||
actions = client.loader.getActions();
|
||||
subject = new Dialer(client);
|
||||
subject.launch();
|
||||
|
||||
selectors = Dialer.Selectors;
|
||||
|
||||
var keypad = subject.client.findElement(selectors.keypadView);
|
||||
client.waitFor(function() {
|
||||
return keypad.displayed();
|
||||
});
|
||||
});
|
||||
|
||||
test('Call Log', function() {
|
||||
var tabItem = subject.client.findElement(selectors.callLogTabItem);
|
||||
actions.tap(tabItem).perform();
|
||||
|
||||
var callLogTabs = subject.client.findElement(selectors.callLogTabs);
|
||||
client.waitFor(function() {
|
||||
return callLogTabs.displayed();
|
||||
});
|
||||
assert.ok(true, 'displayed the call log tabs');
|
||||
});
|
||||
|
||||
test('Contacts', function() {
|
||||
var tabItem = subject.client.findElement(selectors.contactsTabItem);
|
||||
actions.tap(tabItem).perform();
|
||||
|
||||
var iframe = subject.client.findElement('#iframe-contacts');
|
||||
client.waitFor(function() {
|
||||
return iframe.displayed();
|
||||
});
|
||||
assert.ok(true, 'displayed the contacts iframe');
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue