mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-23 20:42:02 +00:00
test(ui): format Playwright configuration for consistency
- Added missing commas and improved formatting in the Playwright configuration file to enhance readability and maintain consistency across the codebase.
This commit is contained in:
+18
-18
@@ -16,7 +16,7 @@ export default defineConfig({
|
||||
baseURL: "http://localhost:3000",
|
||||
trace: "off",
|
||||
screenshot: "off",
|
||||
video: "off"
|
||||
video: "off",
|
||||
},
|
||||
|
||||
projects: [
|
||||
@@ -28,56 +28,56 @@ export default defineConfig({
|
||||
|
||||
// Admin user authentication setup
|
||||
// Creates authenticated state for admin users with full system permissions
|
||||
{
|
||||
{
|
||||
name: "admin.auth.setup",
|
||||
testMatch: "admin.auth.setup.ts",
|
||||
},
|
||||
|
||||
|
||||
// Scans management user authentication setup
|
||||
// Creates authenticated state for users with scan management permissions
|
||||
{
|
||||
{
|
||||
name: "manage-scans.auth.setup",
|
||||
testMatch: "manage-scans.auth.setup.ts",
|
||||
},
|
||||
|
||||
|
||||
// Integrations management user authentication setup
|
||||
// Creates authenticated state for users with integration management permissions
|
||||
{
|
||||
{
|
||||
name: "manage-integrations.auth.setup",
|
||||
testMatch: "manage-integrations.auth.setup.ts",
|
||||
},
|
||||
|
||||
|
||||
// Account management user authentication setup
|
||||
// Creates authenticated state for users with account management permissions
|
||||
{
|
||||
{
|
||||
name: "manage-account.auth.setup",
|
||||
testMatch: "manage-account.auth.setup.ts",
|
||||
},
|
||||
|
||||
|
||||
// Cloud providers management user authentication setup
|
||||
// Creates authenticated state for users with cloud provider management permissions
|
||||
{
|
||||
{
|
||||
name: "manage-cloud-providers.auth.setup",
|
||||
testMatch: "manage-cloud-providers.auth.setup.ts",
|
||||
},
|
||||
|
||||
|
||||
// Unlimited visibility user authentication setup
|
||||
// Creates authenticated state for users with unlimited visibility permissions
|
||||
{
|
||||
{
|
||||
name: "unlimited-visibility.auth.setup",
|
||||
testMatch: "unlimited-visibility.auth.setup.ts",
|
||||
},
|
||||
|
||||
|
||||
// Invite and manage users authentication setup
|
||||
// Creates authenticated state for users with user invitation and management permissions
|
||||
{
|
||||
{
|
||||
name: "invite-and-manage-users.auth.setup",
|
||||
testMatch: "invite-and-manage-users.auth.setup.ts",
|
||||
},
|
||||
|
||||
|
||||
// All authentication setups combined
|
||||
// Runs all authentication setup files to create all user states
|
||||
{
|
||||
{
|
||||
name: "all.auth.setup",
|
||||
testMatch: "**/*.auth.setup.ts",
|
||||
},
|
||||
@@ -88,7 +88,7 @@ export default defineConfig({
|
||||
// These projects run the actual test suites
|
||||
{
|
||||
name: "chromium",
|
||||
use: { ...devices["Desktop Chrome"] }
|
||||
use: { ...devices["Desktop Chrome"] },
|
||||
},
|
||||
],
|
||||
|
||||
@@ -99,7 +99,7 @@ export default defineConfig({
|
||||
timeout: 120 * 1000,
|
||||
env: {
|
||||
NEXT_PUBLIC_API_BASE_URL:
|
||||
process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:8080/api/v1",
|
||||
process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:8080/api/v1",
|
||||
AUTH_SECRET: process.env.AUTH_SECRET || "fallback-ci-secret-for-testing",
|
||||
AUTH_TRUST_HOST: process.env.AUTH_TRUST_HOST || "true",
|
||||
NEXTAUTH_URL: process.env.NEXTAUTH_URL || "http://localhost:3000",
|
||||
|
||||
Reference in New Issue
Block a user