Update stale Patrol readiness copy assertions to match shipped strings

Commit 20b310201 renamed the Patrol provider-setup action copy
('Check model' -> 'Fix setup', 'Open Provider & Models' ->
'Check Patrol model' with href /settings/pulse-intelligence/patrol)
and updated the sibling patrol tests, but missed these four, leaving
build-and-test.yml red on main. Point them at the shipped copy.
This commit is contained in:
rcourtman
2026-07-10 08:50:44 +01:00
parent 0c7796c0bf
commit 0abeb1a041
4 changed files with 9 additions and 9 deletions
@@ -262,9 +262,9 @@ describe('FindingsPanel resource links', () => {
await waitFor(() => expect(mockState.loadPatrolFindings).toHaveBeenCalled());
expect(screen.getByRole('link', { name: 'Open Provider & Models' })).toHaveAttribute(
expect(screen.getByRole('link', { name: 'Check Patrol model' })).toHaveAttribute(
'href',
'/settings/pulse-intelligence/provider',
'/settings/pulse-intelligence/patrol',
);
fireEvent.click(
@@ -273,9 +273,9 @@ describe('FindingsPanel resource links', () => {
}),
);
expect(screen.getByRole('link', { name: 'Open Provider & Models' })).toHaveAttribute(
expect(screen.getByRole('link', { name: 'Check Patrol model' })).toHaveAttribute(
'href',
'/settings/pulse-intelligence/provider',
'/settings/pulse-intelligence/patrol',
);
expect(screen.queryByRole('button', { name: 'Open in Assistant' })).not.toBeInTheDocument();
expect(screen.queryByText('Manage')).not.toBeInTheDocument();
@@ -238,9 +238,9 @@ describe('RunHistoryEntry', () => {
expect(screen.queryByText(/tool_choice/)).toBeNull();
expect(screen.queryByText(/No endpoints found/)).toBeNull();
expect(screen.getByText('error')).toBeInTheDocument();
expect(screen.getByRole('link', { name: 'Open Provider & Models' })).toHaveAttribute(
expect(screen.getByRole('link', { name: 'Check Patrol model' })).toHaveAttribute(
'href',
'/settings/pulse-intelligence/provider',
'/settings/pulse-intelligence/patrol',
);
});
@@ -260,7 +260,7 @@ describe('RunHistoryEntry', () => {
/>
));
expect(screen.queryByRole('link', { name: 'Open Provider & Models' })).toBeNull();
expect(screen.queryByRole('link', { name: 'Check Patrol model' })).toBeNull();
});
it('opens Assistant with structured run history context', () => {
@@ -77,7 +77,7 @@ describe('PatrolIntelligenceHeader', () => {
expect(headerSource).toContain("state.patrolReadiness()?.status === 'not_ready'");
expect(headerSource).toContain('getPatrolProviderSettingsAction');
expect(headerSource).toContain('providerSetupAction.href');
expect(headerSource).toContain('Check model');
expect(headerSource).toContain('Fix setup');
expect(headerSource).toContain('Check Patrol model:');
expect(headerSource).toContain('runButtonDisabled');
expect(headerSource).not.toContain('!state.canTriggerPatrol() ||');
@@ -58,7 +58,7 @@ describe('patrol commercial boundary', () => {
"state.patrolReadiness()?.status !== 'not_ready'",
);
expect(patrolIntelligenceBannersSource).toContain('<Show when={shouldShowReadinessAction()}>');
expect(patrolIntelligenceHeaderSource).toContain('Check model');
expect(patrolIntelligenceHeaderSource).toContain('Fix setup');
});
it('does not carry the removed patrol configuration panel chrome', () => {