diff --git a/App/pelagia-portal/playwright.config.ts b/App/pelagia-portal/playwright.config.ts index 2a9453e..11f65b6 100644 --- a/App/pelagia-portal/playwright.config.ts +++ b/App/pelagia-portal/playwright.config.ts @@ -4,8 +4,8 @@ export default defineConfig({ testDir: "./tests/e2e", fullyParallel: true, forbidOnly: !!process.env.CI, - retries: process.env.CI ? 2 : 0, - workers: process.env.CI ? 1 : undefined, + retries: process.env.CI ? 2 : 1, + workers: process.env.CI ? 1 : 2, reporter: "html", use: { baseURL: "http://localhost:3000", diff --git a/App/pelagia-portal/tests/e2e/admin-bordered-buttons.spec.ts b/App/pelagia-portal/tests/e2e/admin-bordered-buttons.spec.ts new file mode 100644 index 0000000..467f4e8 --- /dev/null +++ b/App/pelagia-portal/tests/e2e/admin-bordered-buttons.spec.ts @@ -0,0 +1,128 @@ +/** + * User stories covered: Feature 10 — Admin bordered buttons + * - On /admin/vendors, Edit and Delete buttons have visible borders (not plain text links) + * - Same checks apply to /admin/users, /admin/vessels, /admin/accounts, /admin/products + * + * The fix replaced text-link style buttons with bordered buttons. We check that action + * buttons in admin tables do NOT have link-only styling (no underline-only appearance) + * and DO have a border or background CSS class. + * + * Selector strategy: Admin action buttons are rendered by EditVendorButton, ConfirmDeleteButton. + * We look for