diff --git a/repro.mjs b/repro.mjs deleted file mode 100644 index 2eb545d..0000000 --- a/repro.mjs +++ /dev/null @@ -1,31 +0,0 @@ -import { chromium } from "playwright"; - -const VEHICLE_ID = "ac846487-8bc9-484b-ad36-35e68bf5f955"; -const CATEGORY_ID = "f15c3c5f-f3b0-47bf-985d-cf9b9c0ff760"; - -const browser = await chromium.launch({ headless: true }); -const ctx = await browser.newContext(); -const page = await ctx.newPage(); - -await page.request.post("https://dev.sase.tr/api/auth/sign-in/email", { - data: { email: "admin@sase.tr", password: "Sase2026" }, -}); - -page.on("response", async (r) => { - const u = r.url(); - if (u.includes("/api/") && (u.includes("categories") || u.includes("vehicles"))) { - let body = ""; - try { body = (await r.text()).slice(0, 400); } catch {} - console.log(`${r.status()} ${u.replace("https://dev.sase.tr","")}\n → ${body}\n`); - } -}); - -await page.goto(`https://dev.sase.tr/dashboard/vehicles/${VEHICLE_ID}/categories/${CATEGORY_ID}`, { waitUntil: "networkidle" }); -await page.waitForTimeout(3000); - -console.log("--- final URL:", page.url()); -const body = await page.evaluate(() => document.body.innerText); -console.log("error visible:", /hata|yuklenir|yüklenir/i.test(body)); -console.log("text excerpt:", body.split("\n").filter(l => l.trim()).slice(0, 10).join(" | ")); - -await browser.close();