fix: a quote held by a test order says so, and its panel closes
Sentry DTF-WEB-D: after "Criar pedido de teste" the quote panel kept offering "Pedido pago fora do site", and the register answered "Esta cotação já virou o pedido #N" without saying it was the test order. The message now names the test order and says to delete it to register the payment; creating the test order closes the quote panel. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -151,6 +151,10 @@ def run():
|
||||
order = tester.call('/operator/quotes/' + test_quote + '/test-order', {}, operator=True)
|
||||
assert order['payment']['provider'] == 'teste' and order['state'] == 'rec', order
|
||||
assert tester.call('/operator/quotes/' + test_quote + '/test-order', {}, operator=True)['id'] == order['id']
|
||||
# The quote is that test order's now: registering it names the test order (Sentry DTF-WEB-D).
|
||||
refused = tester.call('/operator/quotes/' + test_quote + '/register', {'origin': 'atendimento', 'method': 'cash'},
|
||||
operator=True, expected=409)
|
||||
assert 'pedido de teste #' + str(order['number']) in refused['detail'], refused
|
||||
version = order['version']
|
||||
# Arte conferida, the print queue, takes the order once its final is approved.
|
||||
from tests.smoke_test import final_png_bytes
|
||||
|
||||
Reference in New Issue
Block a user