[ui test ] Travis failing fix (#10468)
* Value in assertion was wrong * Update test_purchase_order_receipt.js
This commit is contained in:
parent
dd351c585a
commit
196b491ac4
@ -68,7 +68,7 @@ QUnit.test("test: purchase order receipt", function(assert) {
|
||||
() => {
|
||||
assert.ok($('div.slick-cell.l2.r2 > a').text().includes('Test Product 1')
|
||||
&& $('div.slick-cell.l9.r9 > div').text().includes(5)
|
||||
&& $('div.slick-cell.l12.r12 > div').text().includes(433.42), "Stock ledger entry correct",$('div.slick-cell.l12.r12 > div').text());
|
||||
&& $('div.slick-cell.l12.r12 > div').text().includes(433.29), "Stock ledger entry correct",$('div.slick-cell.l12.r12 > div').text());
|
||||
},
|
||||
|
||||
() => done()
|
||||
|
@ -111,8 +111,8 @@ QUnit.test("test: production order", function (assert) {
|
||||
() => frappe.timeout(0.5),
|
||||
() => click_make(),
|
||||
() => {
|
||||
assert.equal(cur_frm.doc.total_incoming_value, "99104.41",
|
||||
"Incoming cost is correct"+cur_frm.doc.total_incoming_value); // Price of each item x5, values are in USD
|
||||
assert.equal(cur_frm.doc.total_incoming_value, "99104.45",
|
||||
"Incoming cost is correct "+cur_frm.doc.total_incoming_value); // Price of each item x5, values are in USD
|
||||
assert.equal(cur_frm.doc.total_outgoing_value, "99000",
|
||||
"Outgoing cost is correct"); // Price of each item x5, values are in USD
|
||||
assert.equal(cur_frm.doc.total_incoming_value - cur_frm.doc.total_outgoing_value, cur_frm.doc.value_difference,
|
||||
|
Loading…
x
Reference in New Issue
Block a user