Added first UI tests (#9532)

* [wip]

* [tests] wip

* [ui-tests] first-cut

* [minor] remove old tests
This commit is contained in:
Rushabh Mehta
2017-07-03 11:53:07 +05:30
committed by GitHub
parent 65f6f2a05e
commit 43ef4e9047
14 changed files with 104 additions and 150 deletions

View File

@@ -4,10 +4,10 @@
from __future__ import unicode_literals
import frappe
from frappe.utils.nestedset import get_root_of
def boot_session(bootinfo):
"""boot session - send website info if guest"""
import frappe
bootinfo.custom_css = frappe.db.get_value('Style Settings', None, 'custom_css') or ''
bootinfo.website_settings = frappe.get_doc('Website Settings')
@@ -16,6 +16,8 @@ def boot_session(bootinfo):
update_page_info(bootinfo)
load_country_and_currency(bootinfo)
bootinfo.sysdefaults.territory = get_root_of('Territory')
bootinfo.sysdefaults.customer_group = get_root_of('Customer Group')
bootinfo.notification_settings = frappe.get_doc("Notification Control",
"Notification Control")