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')
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'
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'])
def change_domain_name_to(session_browser, domain): functional.set_domain_name(session_browser, domain)
def step_set_domain_name(session_browser, domain): functional.set_domain_name(session_browser, domain)