import { test, expect } from "@playwright/test"; const LOGIN_URL = "/auth/login?returnUrl=/admin"; test("09111111111 should redirect to /admin on successful login", async ({ page, baseURL, }) => { await page.goto(LOGIN_URL); await page .getByRole("spinbutton", { name: "شماره موبایل" }) .fill("09111111111"); await page.getByRole("button", { name: "ادامه" }).click(); await page.getByRole("textbox", { name: "کلمه عبور" }).fill("123456"); await page.getByRole("button", { name: "ورود" }).click(); await expect(page).toHaveURL(`${baseURL}/admin`); });