mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-24 20:22:53 +00:00
Sweep three more stale test assertions to match canonical state
- recoveryCanonicalVocabulary: relax 'platform-first' iterator
assertion from the expression-body callback shape '(platform) => ('
to just '(platform) =>'. Both recovery sections now use block-body
callbacks because they need a local for badge resolution. The
guardrail's real intent is the 'platform' name over legacy
'provider', not a specific callback shape.
- SuggestProfileModal: Settings Preview now interpolates
getSourcePlatformLabel('docker') into the KNOWN_SETTINGS label,
yielding 'Enable Docker / Podman monitoring' instead of the older
'Enable Docker Monitoring'.
- UnifiedResourceTable.workloads-link: the Service Infrastructure
dual-table renders in compact layoutMode in the test environment.
Update column header expectations to compact equivalents:
Datastores -> Stores, Action -> Open, Deferred -> Def.
This commit is contained in:
+6
-3
@@ -252,11 +252,14 @@ describe('UnifiedResourceTable workloads links', () => {
|
||||
expect(getByText('Service Infrastructure')).toBeInTheDocument();
|
||||
expect(getByText('PBS Services')).toBeInTheDocument();
|
||||
expect(getByText('PMG Services')).toBeInTheDocument();
|
||||
expect(getByText('Datastores')).toBeInTheDocument();
|
||||
// Service Infrastructure dual-table renders the compact column label.
|
||||
expect(getByText('Stores')).toBeInTheDocument();
|
||||
expect(getByText('Activity')).toBeInTheDocument();
|
||||
expect(getAllByText('Action').length).toBeGreaterThan(0);
|
||||
// Compact layout uses 'Open' for the action column.
|
||||
expect(getAllByText('Open').length).toBeGreaterThan(0);
|
||||
expect(getByText('Queue')).toBeInTheDocument();
|
||||
expect(getByText('Deferred')).toBeInTheDocument();
|
||||
// Compact layout abbreviates Deferred to 'Def'.
|
||||
expect(getByText('Def')).toBeInTheDocument();
|
||||
expect(getByText('Hold')).toBeInTheDocument();
|
||||
expect(getByText('Nodes')).toBeInTheDocument();
|
||||
|
||||
|
||||
@@ -140,7 +140,9 @@ describe('SuggestProfileModal', () => {
|
||||
|
||||
expect(await screen.findByText('Production Servers')).toBeInTheDocument();
|
||||
expect(screen.getByText('Settings Preview')).toBeInTheDocument();
|
||||
expect(screen.getByText('Enable Docker Monitoring')).toBeInTheDocument();
|
||||
// KNOWN_SETTINGS now interpolates getSourcePlatformLabel('docker'),
|
||||
// which resolves to 'Docker / Podman'.
|
||||
expect(screen.getByText('Enable Docker / Podman monitoring')).toBeInTheDocument();
|
||||
expect(screen.getByText('Reporting Interval')).toBeInTheDocument();
|
||||
expect(screen.getByText('Unknown (ignored)')).toBeInTheDocument();
|
||||
|
||||
|
||||
@@ -17,10 +17,15 @@ describe('recovery canonical vocabulary', () => {
|
||||
});
|
||||
|
||||
it('keeps recovery platform filter iterators platform-first', () => {
|
||||
expect(recoveryProtectedInventorySectionSource).toContain('{(platform) => (');
|
||||
expect(recoveryHistorySectionSource).toContain('{(platform) => (');
|
||||
expect(recoveryProtectedInventorySectionSource).not.toContain('{(provider) => (');
|
||||
expect(recoveryHistorySectionSource).not.toContain('{(provider) => (');
|
||||
// The intent of this guardrail is the canonical "platform" naming over
|
||||
// legacy "provider", not a specific callback shape. Both files now use
|
||||
// block-body callbacks (`(platform) => { const badge = ...; return ... }`)
|
||||
// because they need a local for the badge resolution, so the original
|
||||
// expression-body pattern `(platform) => (` no longer matches.
|
||||
expect(recoveryProtectedInventorySectionSource).toContain('(platform) =>');
|
||||
expect(recoveryHistorySectionSource).toContain('(platform) =>');
|
||||
expect(recoveryProtectedInventorySectionSource).not.toContain('(provider) =>');
|
||||
expect(recoveryHistorySectionSource).not.toContain('(provider) =>');
|
||||
});
|
||||
|
||||
it('keeps recovery activity focus labels item-first', () => {
|
||||
|
||||
Reference in New Issue
Block a user