Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] selenium test and changed Creation Document No to a Dynamic Link
- Loading branch information
1 parent
618fefe
commit 1b6c3f1
Showing
5 changed files
with
48 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
{ | ||
"db_name": "test_frappe", | ||
"db_password": "test_frappe", | ||
"auto_email_id": "test@example.com", | ||
"mail_server": "smtp.example.com", | ||
"mail_login": "test@example.com", | ||
"mail_password": "test", | ||
"admin_password": "admin", | ||
"auto_email_id": "admin@example.com", | ||
"host_name": "http://localhost:8888", | ||
"auto_email_id": "admin@example.com", | ||
"mute_emails": 1, | ||
"run_selenium_tests": 1, | ||
"host_name": "http://localhost:8000", | ||
"install_apps": ["erpnext"] | ||
} |