Skip to main content

check_window_sidebar_button

Function check_window_sidebar_button 

Source
pub fn check_window_sidebar_button<A: ResourceApp>(
    open: impl FnMut() -> Result<HeadlessApp<A>, LaunchError>,
) -> Result<(), String>
Expand description

Open the app with open in each of SIDEBAR_BUTTON_WINDOWS, shown in the desktop’s window bar, and click the bar’s sidebar button there: every click flips the sidebar, on the bar, in the window’s shell and on screen (FrameHarness::check_window_sidebar_button). A narrow window keeps the button on the sidebar’s own screen, behind the screen the person is on, and the check takes the bar’s way back to it.