示例#1
0
 def fixture_setup(self, session_browser):
     """Setup the app."""
     functional.login(session_browser)
     functional.set_domain_name(session_browser, 'mydomain.example')
     functional.install(session_browser, self.app_name)
     functional.app_select_domain_name(session_browser, self.app_name,
                                       'mydomain.example')
示例#2
0
def test_change_domain_name(session_browser):
    """Test changing the domain name."""
    functional.set_domain_name(session_browser, 'mydomain.example')
    assert _get_domain_name(session_browser) == 'mydomain.example'

    # Capitalization is ignored.
    functional.set_domain_name(session_browser, 'Mydomain.example')
    assert _get_domain_name(session_browser) == 'mydomain.example'
示例#3
0
def _jsxc_add_contact(browser):
    """Add a contact to JSXC user's roster."""
    functional.set_domain_name(browser, 'localhost')
    functional.install(browser, 'jsxc')
    _jsxc_login(browser)
    new = browser.find_by_text('new contact')
    if new:  # roster is empty
        new.first.click()
        browser.find_by_id('jsxc_username').fill('alice@localhost')
        browser.find_by_text('Add').first.click()
        assert functional.eventually(browser.find_by_text, ['alice@localhost'])
示例#4
0
def change_domain_name_to(session_browser, domain):
    functional.set_domain_name(session_browser, domain)
示例#5
0
def step_set_domain_name(session_browser, domain):
    functional.set_domain_name(session_browser, domain)