link view ticket for staff
This commit is contained in:
1 parent
6b546aad76
commit
089db0afa4
13 files changed
+412
-3
No files matched your search
@@ -0,0 +1,15 @@
|
||||
from django.urls import reverse
|
||||
from playwright.sync_api import expect
|
||||
|
||||
from tests.e2e.pages.base import BasePage
|
||||
|
||||
|
||||
class StaffShortLinkPage(BasePage):
|
||||
def open_and_login(self, path, staff, password, ticket):
|
||||
self.goto(path)
|
||||
expect(self.page.get_by_role("heading", name="ورود کارشناسان")).to_be_visible()
|
||||
self.page.locator('input[name="username"]').fill(staff.username)
|
||||
self.page.locator('input[name="password"]').fill(password)
|
||||
self.page.get_by_role("button", name="ورود به میز کار").click()
|
||||
expect(self.page).to_have_url(self.url(reverse("staff_tickets:detail", args=[ticket.public_id])))
|
||||
expect(self.page.get_by_text(ticket.subject, exact=True).first).to_be_visible()
|
||||
Reference in new issue
Block a user