test(ui): update snapshots and fix test utility crashes for compact header

This commit is contained in:
Keith Guerin
2026-02-24 00:19:52 -08:00
parent f75d6e422b
commit b32ca37ce7
5 changed files with 78 additions and 51 deletions

View File

@@ -213,6 +213,12 @@ describe('<AppHeader />', () => {
it('should NOT render Tips when tipsShown is 10 or more', async () => {
const mockConfig = makeFakeConfig();
const uiState = {
bannerData: {
defaultText: '',
warningText: '',
},
};
persistentStateMock.setData({ tipsShown: 10 });
@@ -220,6 +226,7 @@ describe('<AppHeader />', () => {
<AppHeader version="1.0.0" />,
{
config: mockConfig,
uiState,
},
);
await waitUntilReady();