Some checks are pending
Bidi Control Character Guard / bidi-control-guard (push) Waiting to run
Circular Dependency Check / Check for new circular dependencies (push) Waiting to run
Citus Migration Smoke / Combined migrations on single-node Citus (push) Waiting to run
E2E Fresh Install Tests / fresh-install-e2e (push) Waiting to run
ext-v2 guardrails / Run ext-v2 guard and ESLint (push) Waiting to run
Integration Tests / Check for relevant changes (push) Waiting to run
Integration Tests / ${{ (github.event_name == 'schedule' || github.event.inputs.suite == 'full') && 'Full integration suite' || 'Tier-1 integration subset' }} (push) Blocked by required conditions
Mobile checks / Mobile lint + typecheck (push) Waiting to run
Mobile checks / Mobile unit tests (push) Waiting to run
Mobile checks / Mobile dependency audit (report) (push) Waiting to run
Mobile checks / Mobile reproducibility checks (push) Waiting to run
Secrets guard (env backups) / Ensure no tracked env backup files (push) Waiting to run
Temporal Readiness / fast-readiness (push) Waiting to run
Temporal Readiness / docker-parity (push) Waiting to run
TypeScript Type Check / Nx affected typecheck (push) Waiting to run
Unit Tests / Skipped-test budget (push) Waiting to run
Unit Tests / Nx affected unit tests (push) Waiting to run
Unit Tests / Server unit coverage (informational) (push) Waiting to run
Validate Tenant Management Schema / Check for relevant changes (push) Waiting to run
Validate Tenant Management Schema / Validate Tenant Management Schema (push) Blocked by required conditions
EE Workflows Build Guard / ee-workflows-build-guard (push) Waiting to run
Excluded: .git, node_modules, secrets/, compose.env, assemblyscript tgz Source: /opt/alga-psa on psa.joliet.tech
41 lines
2.0 KiB
TypeScript
41 lines
2.0 KiB
TypeScript
import { readFileSync } from 'node:fs';
|
|
import { resolve } from 'node:path';
|
|
import { describe, expect, it } from 'vitest';
|
|
|
|
describe('fixed recurring partial-period copy wiring', () => {
|
|
it('T115: fixed recurring configuration panels explain partial-period coverage instead of proration as a timing workaround', () => {
|
|
const files = [
|
|
'../src/components/billing-dashboard/contract-lines/FixedContractLineConfiguration.tsx',
|
|
'../src/components/billing-dashboard/contract-lines/FixedContractLinePresetConfiguration.tsx',
|
|
'../src/components/billing-dashboard/ContractLineDialog.tsx',
|
|
'../src/components/billing-dashboard/contracts/CreateCustomContractLineDialog.tsx',
|
|
'../src/components/billing-dashboard/contracts/wizard-steps/FixedFeeServicesStep.tsx',
|
|
'../src/components/billing-dashboard/contracts/wizard-steps/ReviewContractStep.tsx',
|
|
'../src/components/billing-dashboard/service-configurations/FixedServiceConfigPanel.tsx',
|
|
].map((file) => readFileSync(resolve(__dirname, file), 'utf8'));
|
|
|
|
const combined = files.join('\n');
|
|
|
|
expect(combined).toContain(
|
|
'whether partial-period coverage should adjust the charge'
|
|
);
|
|
expect(combined).toContain(
|
|
'the recurring fee scales to the covered portion of a service period'
|
|
);
|
|
expect(combined).toContain('Partial-Period Adjustment:');
|
|
expect(combined).toContain(
|
|
'Controls how partial-period coverage is calculated when the recurring fee needs to scale to less than a full service period.'
|
|
);
|
|
expect(combined).toContain('Adjust for Partial Periods');
|
|
expect(combined).toContain('Partial-Period Adjustment:');
|
|
expect(combined).not.toContain(
|
|
'Toggle this on if you want the base rate to be prorated when the contract starts mid-cycle.'
|
|
);
|
|
expect(combined).not.toContain(
|
|
'When enabled, the recurring fee will be prorated for partial billing periods'
|
|
);
|
|
expect(combined).not.toContain('Enable Proration');
|
|
expect(combined).not.toContain('<strong>Proration:</strong>');
|
|
});
|
|
});
|