mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
[fix] selenium test and changed Creation Document No to a Dynamic Link
This commit is contained in:
25
erpnext/tests/test_client.py
Normal file
25
erpnext/tests/test_client.py
Normal file
@@ -0,0 +1,25 @@
|
||||
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
# License: GNU General Public License v3. See license.txt
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import unittest, frappe
|
||||
from frappe.utils import sel
|
||||
from frappe.utils import formatdate
|
||||
|
||||
selenium_tests = True
|
||||
|
||||
class TestLogin(unittest.TestCase):
|
||||
def setUp(self):
|
||||
sel.login()
|
||||
|
||||
def test_material_request(self):
|
||||
sel.new_doc("Stock", "Material Request")
|
||||
sel.set_field("company", "_Test Company")
|
||||
sel.add_child("items")
|
||||
sel.set_field("item_code", "_Test Item")
|
||||
sel.set_field("qty", "1")
|
||||
sel.set_field("warehouse", "_Test Warehouse - _TC")
|
||||
sel.set_field("schedule_date", formatdate())
|
||||
sel.done_add_child("items")
|
||||
sel.primary_action()
|
||||
sel.wait_for_state("clean")
|
||||
Reference in New Issue
Block a user