mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-13 15:13:07 +00:00
122 lines
3.5 KiB
JavaScript
122 lines
3.5 KiB
JavaScript
/**
|
|
* e2e manifest (OPS5): source path prefix → Playwright specs exercising it.
|
|
* e2e specs never import app code, so this curated table is the only source
|
|
* of truth. Granularity is the DOMAIN prefix on purpose — finer grains rot.
|
|
* Spec names exist as tests/e2e/<name>.e2e.spec.ts (pinned by unit test).
|
|
* Prefixes are repo-relative POSIX paths; matching is startsWith.
|
|
*/
|
|
const CAMPAIGN_APP = 'src/app/(campaign)/campanha/(app)'
|
|
|
|
export const E2E_AFFECTED_MANIFEST = [
|
|
{
|
|
prefixes: ['src/app/(payload)'],
|
|
specs: ['admin'],
|
|
},
|
|
{
|
|
prefixes: ['src/app/(frontend)'],
|
|
specs: ['frontend'],
|
|
},
|
|
{
|
|
prefixes: ['src/app/(campaign)/campanha/login', 'src/utilities/campaignAuth'],
|
|
specs: ['campaignAuth'],
|
|
},
|
|
{
|
|
prefixes: ['src/app/(campaign)/campanha/webauthn', 'src/utilities/webauthn'],
|
|
specs: ['campaignWebAuthn'],
|
|
},
|
|
{
|
|
prefixes: [
|
|
`${CAMPAIGN_APP}/municipios`,
|
|
'src/components/campaign/municipality',
|
|
'src/components/campaign/map',
|
|
'src/utilities/municipality',
|
|
],
|
|
specs: [
|
|
'campaignMunicipalities',
|
|
'campaignZoneMap',
|
|
'campaignNearestMunicipality',
|
|
'campaignSavedFilters',
|
|
'campaignColumnPicker',
|
|
],
|
|
},
|
|
{
|
|
prefixes: [
|
|
`${CAMPAIGN_APP}/atividades`,
|
|
'src/components/campaign/activity',
|
|
'src/utilities/activity',
|
|
'src/lib/activityQuickActions',
|
|
],
|
|
specs: ['campaignActivity'],
|
|
},
|
|
{
|
|
prefixes: [
|
|
`${CAMPAIGN_APP}/liderancas`,
|
|
'src/components/campaign/leadership',
|
|
'src/utilities/leadership',
|
|
],
|
|
specs: ['campaignLeaderships'],
|
|
},
|
|
{
|
|
prefixes: [
|
|
`${CAMPAIGN_APP}/territorios`,
|
|
'src/components/campaign/tour',
|
|
'src/utilities/territory',
|
|
],
|
|
specs: ['campaignTerritories'],
|
|
},
|
|
{
|
|
prefixes: [`${CAMPAIGN_APP}/conceitos`],
|
|
specs: ['campaignConcepts'],
|
|
},
|
|
{
|
|
prefixes: [
|
|
`${CAMPAIGN_APP}/page.tsx`,
|
|
`${CAMPAIGN_APP}/home-search`,
|
|
'src/components/campaign/dashboard',
|
|
'src/utilities/homeSearch',
|
|
'src/utilities/campaignDashboardData',
|
|
'src/lib/campaignHomeSearchHits',
|
|
'src/lib/homeSearchShare',
|
|
],
|
|
specs: ['campaignHomeActions'],
|
|
},
|
|
{
|
|
prefixes: [
|
|
'src/components/campaign/shell',
|
|
`${CAMPAIGN_APP}/layout.tsx`,
|
|
'src/utilities/campaignPwa',
|
|
'src/lib/campaignQuickAction',
|
|
'src/lib/campaignReferenceQuickActions',
|
|
'src/lib/campaignPaths.ts',
|
|
],
|
|
specs: ['campaign-pwa', 'campaignWizardChrome'],
|
|
},
|
|
// Domains without a dedicated e2e family still wake campaign home smoke so
|
|
// the affected classifier cannot return mode=none on an unmapped domain dir.
|
|
{
|
|
prefixes: [
|
|
'src/components/campaign/advisor',
|
|
'src/components/campaign/demand',
|
|
'src/components/campaign/invite',
|
|
'src/components/campaign/organization',
|
|
'src/components/campaign/stateDeputy',
|
|
'src/components/campaign/suggestion',
|
|
'src/components/campaign/supporter',
|
|
'src/components/campaign/votePledge',
|
|
'src/components/campaign/auth',
|
|
`${CAMPAIGN_APP}/acoes`,
|
|
'src/components/campaign/shared/WizardMunicipality',
|
|
'src/components/campaign/shared/useWizardNearestMunicipality',
|
|
'src/lib/wizardMunicipalitySuggestMerge',
|
|
`${CAMPAIGN_APP}/apoiadores`,
|
|
`${CAMPAIGN_APP}/assessores`,
|
|
`${CAMPAIGN_APP}/contatos`,
|
|
`${CAMPAIGN_APP}/demandas`,
|
|
`${CAMPAIGN_APP}/dobradinhas`,
|
|
`${CAMPAIGN_APP}/organizacoes`,
|
|
`${CAMPAIGN_APP}/perfil`,
|
|
`${CAMPAIGN_APP}/quadro`,
|
|
],
|
|
specs: ['campaignHomeActions'],
|
|
},
|
|
]
|