fix pwa, wizard focus, supervisor 5
This commit is contained in:
1 parent
ffc1ec0dcf
commit
d72381f0ac
11 files changed
+99
-25
No files matched your search
@@ -142,10 +142,11 @@ def test_unit_notification_destinations_normalize_and_reject_duplicate_superviso
|
||||
supervisor_mobile_1="0912 111 2233",
|
||||
supervisor_mobile_2="0935 222 3344",
|
||||
supervisor_mobile_4="0990 444 5566",
|
||||
supervisor_mobile_5="0921 555 6677",
|
||||
)
|
||||
unit.full_clean()
|
||||
unit.save()
|
||||
assert unit.supervisor_mobiles == ("+989121112233", "+989352223344", "+989904445566")
|
||||
assert unit.supervisor_mobiles == ("+989121112233", "+989352223344", "+989904445566", "+989215556677")
|
||||
|
||||
unit.supervisor_mobile_3 = "09121112233"
|
||||
with pytest.raises(ValidationError, match="قبلاً"):
|
||||
@@ -161,6 +162,7 @@ def test_new_ticket_sms_is_queued_for_each_unit_supervisor_only_on_creation(cate
|
||||
unit.supervisor_mobile_2 = "09352223344"
|
||||
unit.supervisor_mobile_3 = "09903334455"
|
||||
unit.supervisor_mobile_4 = "09214445566"
|
||||
unit.supervisor_mobile_5 = "09195556677"
|
||||
unit.save()
|
||||
ticket = create_ticket(customer=customer, category=category, subject=" پیگیری بارگیری ", body="متن")
|
||||
jobs = list(NotificationJob.objects.filter(ticket=ticket, event_type="UNIT_SUPERVISOR_NEW_TICKET").order_by("id"))
|
||||
|
||||
Reference in new issue
Block a user