@@ -2271,7 +2271,7 @@ def render(self) -> LinearGradient:
22712271def test_maximize_allow (snap_compare ):
22722272 """Check that App.ALLOW_IN_MAXIMIZED_VIEW is the default.
22732273
2274- If working this should show a header, some text, and a focused button.
2274+ If working this should show a header, some text, a focused button, and more text .
22752275
22762276 """
22772277
@@ -2282,13 +2282,13 @@ class MaximizeApp(App):
22822282 def compose (self ) -> ComposeResult :
22832283 yield Label (
22842284 "Above" , classes = "-textual-system"
2285- ) # Allowed because it has class -textual-system
2286- yield Header () # Visible because it matches ALLOW_IN_MAXIMIZED_VIEW
2287- yield Button ("Hello" ) # Visible because it is the maximized widget
2285+ ) # Allowed in maximize view because it has class -textual-system
2286+ yield Header () # Allowed because it matches ALLOW_IN_MAXIMIZED_VIEW
2287+ yield Button ("Hello" ) # Allowed because it is the maximized widget
22882288 yield Label (
22892289 "Below" , classes = "-textual-system"
22902290 ) # Allowed because it has class -textual-system
2291- yield Button ("World" ) # Not visible
2292- yield Footer () # Not visible
2291+ yield Button ("World" ) # Not allowed
2292+ yield Footer () # Not allowed
22932293
22942294 assert snap_compare (MaximizeApp (), press = ["m" ])
0 commit comments