fix pwa, wizard focus, supervisor 5

This commit is contained in:
javad committed 2026-09-16 11:06:38 +03:30
1 parent ffc1ec0dcf
commit d72381f0ac
11 files changed
+99 -25

No files matched your search

+9
View File
@@ -529,6 +529,15 @@ def test_pwa_prompt_is_mobile_only_and_uses_square_app_icon(client):
assert "mobileDevice" in script and "banner&&mobileDevice" in script
assert all(icon["src"].endswith("pwa-icon.png") for icon in manifest["icons"])
@pytest.mark.django_db
def test_pwa_install_prompt_is_only_rendered_on_customer_ticket_list(client):
customer=User.objects.create_user(username="pwa-list-only",mobile="09120000123",account_type="CUSTOMER")
client.force_login(customer)
assert 'data-pwa-install' in client.get(reverse("tickets:list")).content.decode()
assert 'data-pwa-install' not in client.get(reverse("tickets:new")).content.decode()
assert 'data-pwa-install' not in Path("templates/base.html").read_text(encoding="utf-8")
@pytest.mark.django_db
def test_customer_list_recommends_profile_completion_without_blocking_ticket_creation(client):
customer=User.objects.create_user(username="incomplete-profile",mobile="09202202129",account_type="CUSTOMER")