mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-14 01:20:41 +00:00
[added] hospitality domain (#11020)
* [added] hospitality domain * [tests] wip * [tests] for restaurant * [fix] tests for new naming * [docs] added restaurant docs * [docs] added restaurant docs
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
QUnit.test("test: operation", function (assert) {
|
||||
assert.expect(2);
|
||||
let done = assert.async();
|
||||
let set_op_name = (text) => {
|
||||
$(`input.input-with-feedback.form-control.bold:visible`).val(`${text}`);
|
||||
};
|
||||
let click_create = () => {
|
||||
$(`.btn-primary:contains("Create"):visible`).click();
|
||||
};
|
||||
|
||||
frappe.run_serially([
|
||||
// test operation creation
|
||||
() => frappe.set_route("List", "Operation"),
|
||||
@@ -16,14 +9,11 @@ QUnit.test("test: operation", function (assert) {
|
||||
() => {
|
||||
frappe.tests.make(
|
||||
"Operation", [
|
||||
{__newname: "Assemble Keyboard"},
|
||||
{workstation: "Keyboard assembly workstation"}
|
||||
]
|
||||
);
|
||||
},
|
||||
() => frappe.timeout(4),
|
||||
() => set_op_name("Assemble Keyboard"),
|
||||
() => frappe.timeout(0.5),
|
||||
() => click_create(),
|
||||
() => frappe.timeout(1),
|
||||
() => {
|
||||
assert.ok(cur_frm.docname.includes('Assemble Keyboard'),
|
||||
@@ -36,28 +26,22 @@ QUnit.test("test: operation", function (assert) {
|
||||
() => {
|
||||
frappe.tests.make(
|
||||
"Operation", [
|
||||
{__newname: 'Assemble Screen'},
|
||||
{workstation: "Screen assembly workstation"}
|
||||
]
|
||||
);
|
||||
},
|
||||
() => frappe.timeout(4),
|
||||
() => set_op_name("Assemble Screen"),
|
||||
() => frappe.timeout(0.5),
|
||||
() => click_create(),
|
||||
() => frappe.timeout(1),
|
||||
|
||||
// Create a CPU operation
|
||||
() => {
|
||||
frappe.tests.make(
|
||||
"Operation", [
|
||||
{__newname: 'Assemble CPU'},
|
||||
{workstation: "CPU assembly workstation"}
|
||||
]
|
||||
);
|
||||
},
|
||||
() => frappe.timeout(4),
|
||||
() => set_op_name("Assemble CPU"),
|
||||
() => frappe.timeout(0.5),
|
||||
() => click_create(),
|
||||
() => frappe.timeout(1),
|
||||
|
||||
() => done()
|
||||
|
||||
Reference in New Issue
Block a user