bale group for orgs, and sms for each org
This commit is contained in:
1 parent
a18a68578f
commit
1ee83374fd
13 files changed
+262
-20
No files matched your search
@@ -88,7 +88,7 @@ def test_e2e_02_contact_group_picker_excludes_other_units(live_server, browser_p
|
||||
with browser_page() as page:
|
||||
login_staff(page, live_server, users["kimiya_ghaffari"])
|
||||
page.goto(f"{live_server.url}{reverse('staff_tickets:contact_create')}", wait_until="domcontentloaded")
|
||||
options = page.locator('select[name="groups"] option')
|
||||
options = page.locator('[data-contact-group-selector] label')
|
||||
expect(options.filter(has_text="مخاطبان فروش")).to_have_count(1)
|
||||
expect(options.filter(has_text="بارگیری انبار")).to_have_count(0)
|
||||
expect(options.filter(has_text="مالی / حسابداری")).to_have_count(0)
|
||||
@@ -96,7 +96,7 @@ def test_e2e_02_contact_group_picker_excludes_other_units(live_server, browser_p
|
||||
page.locator('input[name="first_name"]').fill("مخاطب")
|
||||
page.locator('input[name="last_name"]').fill("فروش")
|
||||
page.locator('select[name="stakeholder_type"]').select_option(CustomerProfile.StakeholderType.CUSTOMER)
|
||||
page.locator('select[name="groups"]').select_option(str(sales_group.pk))
|
||||
page.locator(f'input[name="groups"][value="{sales_group.pk}"]').check()
|
||||
with page.expect_navigation(wait_until="domcontentloaded"):
|
||||
page.get_by_role("button", name="ذخیره مخاطب").click()
|
||||
expect(page.locator("body")).to_contain_text("مخاطب فروش")
|
||||
|
||||
Reference in new issue
Block a user