forked from boos/BoosAPI
Carry update center review test follow-up
This merge keeps PR #533 aligned with dev after addressing CodeRabbit follow-up test comments. The changes are limited to UpdateCenterSection test assertions. Constraint: Release branch remains the publication branch for the open main-targeting PR. Confidence: high Scope-risk: narrow Tested: npx vitest run --root . src/web/pages/settings/UpdateCenterSection.test.tsx Tested: npm run typecheck:web Co-authored-by: OmX <omx@oh-my-codex.dev>
This commit is contained in:
@@ -470,11 +470,7 @@ describe('UpdateCenterSection', () => {
|
|||||||
});
|
});
|
||||||
await flushMicrotasks();
|
await flushMicrotasks();
|
||||||
|
|
||||||
const recentTagCard = root.root.find((node) => (
|
expect(collectText(root.root)).toContain('dev-20260417-f67ade2 @ sha256:bbbbbbbbbbbb');
|
||||||
typeof node.props?.style === 'object'
|
|
||||||
&& collectText(node).includes('dev-20260417-f67ade2 @ sha256:bbbbbbbbbbbb')
|
|
||||||
));
|
|
||||||
expect(recentTagCard).toBeTruthy();
|
|
||||||
|
|
||||||
const deployRecentButton = root.root.find((node) => (
|
const deployRecentButton = root.root.find((node) => (
|
||||||
node.type === 'button'
|
node.type === 'button'
|
||||||
@@ -599,6 +595,7 @@ describe('UpdateCenterSection', () => {
|
|||||||
targetTag: 'dev-20260417-next',
|
targetTag: 'dev-20260417-next',
|
||||||
targetDigest: 'sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',
|
targetDigest: 'sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',
|
||||||
});
|
});
|
||||||
|
expect(apiMock.streamUpdateCenterTaskLogs).toHaveBeenCalledWith('task-1', expect.any(Object));
|
||||||
} finally {
|
} finally {
|
||||||
root?.unmount();
|
root?.unmount();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user