blob: 153ce751d4538eaf1c76fe2428bbbc4366406550 [file] [log] [blame]
Anand Doshi1b6c3f12015-05-28 21:46:40 -04001# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
2# License: GNU General Public License v3. See license.txt
3from __future__ import unicode_literals
4
5import unittest, frappe
6from frappe.utils import sel
7from frappe.utils import formatdate
8
9selenium_tests = True
10
Nabin Hait2d831222015-07-08 18:02:42 +053011# class TestLogin(unittest.TestCase):
12# def setUp(self):
13# sel.login()
14#
15# def test_material_request(self):
16# sel.new_doc("Stock", "Material Request")
17# sel.set_field("company", "_Test Company")
18# sel.add_child("items")
19# sel.set_field("item_code", "_Test Item")
20# sel.set_field("qty", "1")
21# sel.set_field("warehouse", "_Test Warehouse - _TC")
22# sel.set_field("schedule_date", formatdate())
23# sel.done_add_child("items")
24# sel.primary_action()
25# sel.wait_for_state("clean")