add: full multi-tenancy control

This commit is contained in:
Cauê Faleiros
2026-02-02 15:31:15 -03:00
commit c6ec92802b
1711 changed files with 258106 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import { test as base, expect, type Page } from "@playwright/test";
type AdminFixtures = {
adminPage: Page;
};
export const test = base.extend<AdminFixtures>({
adminPage: async ({ page }, use) => {
const adminCredentials = {
email: "admin@example.com",
password: "admin123",
};
await page.goto("admin/login");
await page.fill('input[name="email"]', adminCredentials.email);
await page.fill('input[name="password"]', adminCredentials.password);
await page.press('input[name="password"]', "Enter");
await page.waitForURL("**/admin/dashboard");
await use(page);
},
});
export { expect };