def METHOD_NAME(self, timeout=120):
    elapsed_time = 0
    start_time = time.time()
    still_visible = True
    while elapsed_time < timeout:
        running = self.nav.page.get_by_text("[*]").all()
        still_visible = any(list(map(lambda r: r.is_visible(), running)))
        elapsed_time = time.time() - start_time
        time.sleep(1)
        if not still_visible:
            break
    if still_visible:
        raise ValueError(
            f"Timeout Waited for commands to finish, "
            f"but couldn't finish in {timeout} sec"
        )