~canonical-platform-qa/address-book-app/select_contact_to_add_phone

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
# Copyright 2014 Canonical
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 3, as published
# by the Free Software Foundation.

"""Tests for the Addressbook App"""

from __future__ import absolute_import
from testtools.matchers import Equals
from autopilot.matchers import Eventually

from address_book_app.tests import AddressBookAppTestCase


class TestAddPhoneToContact(AddressBookAppTestCase):
    """Tests call the app with different uri"""

    def setUp(self):
        self.ARGS.append("addressbook:///addnewphone?phone=1234567890")
        AddressBookAppTestCase.PRELOAD_VCARD = True
        super(TestAddPhoneToContact, self).setUp()

    def test_add_phone_to_contact(self):
        list_page = self.app.main_window.get_contact_list_page()
        edit_page = list_page.open_contact(0)