diff --git a/apps/mark-scan/frontend/src/app_root.tsx b/apps/mark-scan/frontend/src/app_root.tsx index 585324228..8c6e077b9 100644 --- a/apps/mark-scan/frontend/src/app_root.tsx +++ b/apps/mark-scan/frontend/src/app_root.tsx @@ -155,7 +155,7 @@ export function AppRoot({ const machineConfigQuery = getMachineConfig.useQuery(); const devices = useDevices({ hardware, logger }); - const { accessibleController, computer } = devices; + const { computer } = devices; const usbDriveStatusQuery = getUsbDriveStatus.useQuery(); const authStatusQuery = getAuthStatus.useQuery(); @@ -551,7 +551,6 @@ export function AppRoot({ { - it('Displays warning if Accessible Controller connection is lost', async () => { - apiMock.expectGetMachineConfig(); - const hardware = MemoryHardware.buildStandard(); - hardware.setAccessibleControllerConnected(true); - - apiMock.expectGetElectionDefinition(electionGeneralDefinition); - apiMock.expectGetElectionState({ - precinctSelection: ALL_PRECINCTS_SELECTION, - pollsState: 'polls_open', - }); - - render( - - ); - const accessibleControllerWarningText = - 'Voting with an accessible controller is not currently available.'; - - // Start on Insert Card screen - await screen.findByText(insertCardScreenText); - expect(screen.queryByText(accessibleControllerWarningText)).toBeFalsy(); - - // Disconnect Accessible Controller - act(() => { - hardware.setAccessibleControllerConnected(false); - }); - await advanceTimersAndPromises(); - screen.getByText(accessibleControllerWarningText); - screen.getByText(insertCardScreenText); - - // Reconnect Accessible Controller - act(() => { - hardware.setAccessibleControllerConnected(true); - }); - await advanceTimersAndPromises(); - expect(screen.queryByText(accessibleControllerWarningText)).toBeFalsy(); - screen.getByText(insertCardScreenText); - }); - it('Displays error screen if Card Reader connection is lost', async () => { apiMock.expectGetMachineConfig(); const hardware = MemoryHardware.buildStandard(); diff --git a/apps/mark-scan/frontend/src/pages/insert_card_screen.test.tsx b/apps/mark-scan/frontend/src/pages/insert_card_screen.test.tsx index a877d0f89..3977cf8c4 100644 --- a/apps/mark-scan/frontend/src/pages/insert_card_screen.test.tsx +++ b/apps/mark-scan/frontend/src/pages/insert_card_screen.test.tsx @@ -30,7 +30,6 @@ test('renders correctly', async () => { showNoChargerAttachedWarning={false} isLiveMode={false} pollsState="polls_closed_initial" - showNoAccessibleControllerWarning={false} /> diff --git a/apps/mark-scan/frontend/src/pages/insert_card_screen.tsx b/apps/mark-scan/frontend/src/pages/insert_card_screen.tsx index e336bbe26..d482d49c6 100644 --- a/apps/mark-scan/frontend/src/pages/insert_card_screen.tsx +++ b/apps/mark-scan/frontend/src/pages/insert_card_screen.tsx @@ -27,7 +27,6 @@ interface Props { showNoChargerAttachedWarning: boolean; isLiveMode: boolean; pollsState: PollsState; - showNoAccessibleControllerWarning: boolean; } export function InsertCardScreen({ @@ -36,7 +35,6 @@ export function InsertCardScreen({ showNoChargerAttachedWarning, isLiveMode, pollsState, - showNoAccessibleControllerWarning, }: Props): JSX.Element | null { useEffect(triggerAudioFocus, []); @@ -87,11 +85,6 @@ export function InsertCardScreen({

{mainText} - {showNoAccessibleControllerWarning && ( - - Voting with an accessible controller is not currently available. - - )}