84 lines
2.7 KiB
JavaScript
84 lines
2.7 KiB
JavaScript
export const chromiumProjects = ["chromium-desktop", "chromium-mobile"];
|
|
export const prGrep = "@pr";
|
|
export const smokeGrep = "@smoke";
|
|
|
|
export const fallbackChangePatterns = [
|
|
/^package(?:-lock)?\.json$/u,
|
|
/^vite\.config\.js$/u,
|
|
/^playwright(?:\..+)?\.config\.(?:js|ts)$/u,
|
|
/^playwright\.global-(?:setup|teardown)\.mjs$/u,
|
|
/^scripts\/run-playwright/u,
|
|
/^tests\/e2e\/(?:support|fixtures)\//u,
|
|
];
|
|
|
|
export const sourceMappings = [
|
|
{
|
|
name: "auth",
|
|
patterns: [/^src\/(?:views|components|middleware)\/.*auth/iu, /^src\/views\/auth\//u, /^src\/components\/session\//u],
|
|
specs: ["tests/e2e/auth.smoke.spec.js", "tests/e2e/userAuth.spec.ts"],
|
|
projects: chromiumProjects,
|
|
},
|
|
{
|
|
name: "public-routes",
|
|
patterns: [/^src\/views\/pages\//u, /^src\/components\/page\//u, /^src\/router\.js$/u],
|
|
specs: ["tests/e2e/navigation.smoke.spec.js"],
|
|
projects: chromiumProjects,
|
|
},
|
|
{
|
|
name: "booking",
|
|
patterns: [/bookings?/iu, /time-bookings/iu, /^src\/views\/guest\/book\//u],
|
|
specs: [
|
|
"tests/e2e/booking-selfserve.smoke.spec.js",
|
|
"tests/e2e/userBookWash.spec.ts",
|
|
"tests/e2e/userBookings.spec.ts",
|
|
],
|
|
projects: chromiumProjects,
|
|
},
|
|
{
|
|
name: "pos",
|
|
patterns: [/\/pos[/-]/iu, /POS/iu, /^src\/assets\/pos\.css$/u],
|
|
specs: ["tests/e2e/pos-flow.spec.js", "tests/e2e/pos-mobile-order-flow.spec.js", "tests/e2e/admin-pos-orders.spec.ts"],
|
|
projects: chromiumProjects,
|
|
},
|
|
{
|
|
name: "edge-gateways",
|
|
patterns: [/edge[-/]?gateways?/iu, /edgeGateway/iu],
|
|
specs: ["tests/e2e/edge-gateways.smoke.spec.js", "tests/e2e/edge-gateways.routes.spec.js"],
|
|
projects: chromiumProjects,
|
|
},
|
|
{
|
|
name: "invoicing",
|
|
patterns: [/invoic/iu, /economic[-/]?queue/iu, /collected-order/iu],
|
|
specs: [
|
|
"tests/e2e/invoicing-period.smoke.spec.js",
|
|
"tests/e2e/invoice-distribution.smoke.spec.js",
|
|
"tests/e2e/invoice-transfer-queue-history.spec.js",
|
|
],
|
|
projects: chromiumProjects,
|
|
},
|
|
{
|
|
name: "workfeed",
|
|
patterns: [/workfeed/iu],
|
|
specs: ["tests/e2e/workfeed-config.smoke.spec.js"],
|
|
projects: chromiumProjects,
|
|
},
|
|
{
|
|
name: "system-status",
|
|
patterns: [/system[-/]?status/iu, /systemDatabase/iu, /replication/iu],
|
|
specs: ["tests/e2e/superuser-system-status.smoke.spec.js"],
|
|
projects: chromiumProjects,
|
|
},
|
|
{
|
|
name: "self-serve",
|
|
patterns: [/self[-/]?serve/iu, /selfserve/iu, /wash\/MyWash/iu],
|
|
specs: ["tests/e2e/self-serve-wash.spec.js", "tests/e2e/self-serve-studio-flow.spec.js"],
|
|
projects: chromiumProjects,
|
|
},
|
|
{
|
|
name: "i18n",
|
|
patterns: [/^src\/i18n\//u, /i18n/iu, /locales/iu],
|
|
specs: ["tests/e2e/i18n.smoke.spec.ts"],
|
|
projects: chromiumProjects,
|
|
},
|
|
];
|