fix: preserve cross-device evidence and render recorded reports
This commit is contained in:
1 parent
a66803651a
commit
1440a1f508
28 files changed
+759
-128
No files matched your search
@@ -229,7 +229,7 @@ def test_video_recording_persistence(tmp_path):
|
||||
assert updated.status == "ready"
|
||||
|
||||
|
||||
def test_record_step_suppresses_identical_post_screenshot(tmp_path):
|
||||
def test_record_step_retains_identical_post_capture_without_duplicating_file(tmp_path):
|
||||
mock_ctx = MagicMock(spec=ArtemisContext)
|
||||
mock_execution_setup = MagicMock()
|
||||
mock_execution_setup.traces_path = str(tmp_path)
|
||||
@@ -251,11 +251,11 @@ def test_record_step_suppresses_identical_post_screenshot(tmp_path):
|
||||
step_record = engine.storage.get_steps(engine.current_session_id)[0]
|
||||
assert step_record is not None
|
||||
assert step_record.pre_image_name is not None
|
||||
# post_image_name must be None when no visual transition occurred
|
||||
assert step_record.post_image_name is None
|
||||
assert step_record.post_image_name == step_record.pre_image_name
|
||||
assert len(list((tmp_path / "images").iterdir())) == 1
|
||||
|
||||
|
||||
def test_update_step_execution_result_suppresses_identical_post_screenshot(tmp_path):
|
||||
def test_update_step_execution_result_retains_identical_post_capture(tmp_path):
|
||||
mock_ctx = MagicMock(spec=ArtemisContext)
|
||||
mock_execution_setup = MagicMock()
|
||||
mock_execution_setup.traces_path = str(tmp_path)
|
||||
@@ -284,7 +284,7 @@ def test_update_step_execution_result_suppresses_identical_post_screenshot(tmp_p
|
||||
)
|
||||
|
||||
updated_step = engine.storage.get_steps(engine.current_session_id)[0]
|
||||
assert updated_step.post_image_name is None
|
||||
assert updated_step.post_image_name == updated_step.pre_image_name
|
||||
|
||||
# Update with distinct post_image_name
|
||||
engine.storage.update_step_execution_result(
|
||||
|
||||
Reference in new issue
Block a user