def METHOD_NAME(manager):
    def widget_text():
        return manager.c.bar["top"].info()["widgets"][0]["text"]
    # When no windows are spawned the text should be ""
    # Initially TextBox has " " but the Config.set_group function already
    # calls focus_change hook, so the text should be updated to ""
    assert widget_text() == ""
    # Load a window
    proc = manager.test_window("one")
    assert widget_text() == "<b>one</b>"
    # Maximize window
    manager.c.window.toggle_maximize()
    assert widget_text() == "<b>[] one</b>"
    # Minimize window
    manager.c.window.toggle_minimize()
    assert widget_text() == "<b>_ one</b>"
    # Float window
    manager.c.window.toggle_minimize()
    manager.c.window.toggle_floating()
    assert widget_text() == "<b>V one</b>"
    # Kill the window and check empty string again
    manager.kill_window(proc)
    assert widget_text() == ""