VulpesOS/gaia/apps/communications/dialer/test/marionette/navigation_test.js
OverSu b38dea0597 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.
2026-09-30 23:13:03 +02:00

46 lines
1.2 KiB
JavaScript
Executable file

'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');
});
});