From f4c4bd2d149da268f56ce761572c07b0748e36e1 Mon Sep 17 00:00:00 2001 From: Clement Rey Date: Tue, 17 Dec 2024 12:11:58 +0100 Subject: [PATCH] checklist --- .../check_modal_scrolling.py | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 tests/python/release_checklist/check_modal_scrolling.py diff --git a/tests/python/release_checklist/check_modal_scrolling.py b/tests/python/release_checklist/check_modal_scrolling.py new file mode 100644 index 000000000000..8859f69acc17 --- /dev/null +++ b/tests/python/release_checklist/check_modal_scrolling.py @@ -0,0 +1,46 @@ +from __future__ import annotations + +import os +from argparse import Namespace +from uuid import uuid4 + +import rerun as rr +import rerun.blueprint as rrb + +README = """\ +# Modal scrolling + +* Select the 2D view +* Open the Entity Path Filter modal +* Make sure it behaves properly, including scrolling +""" + + +def log_readme() -> None: + rr.log("readme", rr.TextDocument(README, media_type=rr.MediaType.MARKDOWN), timeless=True) + + +def log_many_entities() -> None: + for i in range(0, 1000): + rr.log(f"points/{i}", rr.Points2D([(i, i)])) + + +def run(args: Namespace) -> None: + rr.script_setup( + args, + f"{os.path.basename(__file__)}", + recording_id=uuid4(), + default_blueprint=rrb.Grid(rrb.Spatial2DView(origin="/"), rrb.TextDocumentView(origin="readme")), + ) + + log_readme() + log_many_entities() + + +if __name__ == "__main__": + import argparse + + parser = argparse.ArgumentParser(description="Interactive release checklist") + rr.script_add_args(parser) + args = parser.parse_args() + run(args)