Revert "feat(accessibility): implement centralized screen reader layo… (#9255)

This commit is contained in:
christine betts
2025-09-23 15:44:33 -04:00
committed by GitHub
parent 16278fd849
commit 39b0948417
10 changed files with 64 additions and 348 deletions

View File

@@ -32,46 +32,6 @@ vi.mock('./components/QuittingDisplay.js', () => ({
QuittingDisplay: () => <Text>Quitting...</Text>,
}));
vi.mock('./components/Footer.js', () => ({
Footer: () => <Text>Footer</Text>,
}));
vi.mock('./semantic-colors.js', () => ({
theme: {
status: {
warning: 'yellow',
},
},
}));
// Don't mock the layout components - let them render normally so tests can see the Ctrl messages
vi.mock('./hooks/useLayoutConfig.js', () => ({
useLayoutConfig: () => ({
mode: 'default',
shouldUseStatic: true,
shouldShowFooterInComposer: true,
}),
}));
vi.mock('./hooks/useFooterProps.js', () => ({
useFooterProps: () => ({
model: 'test-model',
targetDir: '/test',
debugMode: false,
branchName: 'test-branch',
debugMessage: '',
corgiMode: false,
errorCount: 0,
showErrorDetails: false,
showMemoryUsage: false,
promptTokenCount: 0,
nightly: false,
isTrustedFolder: true,
vimMode: undefined,
}),
}));
describe('App', () => {
const mockUIState: Partial<UIState> = {
streamingState: StreamingState.Idle,
@@ -95,6 +55,7 @@ describe('App', () => {
);
expect(lastFrame()).toContain('MainContent');
expect(lastFrame()).toContain('Notifications');
expect(lastFrame()).toContain('Composer');
});
@@ -126,6 +87,7 @@ describe('App', () => {
);
expect(lastFrame()).toContain('MainContent');
expect(lastFrame()).toContain('Notifications');
expect(lastFrame()).toContain('DialogManager');
});