Some of the operations raise exception under normal circumstances (e.g. after running a crop, the same parameters are used to redraw the preview, but fail because the input dimensions are different). So the operations window catches and displays the error. Unfortunately this hides actual errors from the system tests.
This change introduces a small allow list of error messages. Any thing else will count as a test failure.
Testing & Acceptance Criteria
Add a raise RuntimeError("hello") into one of the operations and check that the system-test fails
coverage: 73.144%. remained the same
when pulling 68cd1a607cad4a4a3581fa6ef5586de294cbecaa on 2250-catch-operation-errors
into df9363b8c19a617fdf378f71e23098ac533da395 on main.
With a filter for messages that are expected
Issue
Can be applied once #2250 is fixed.
Description
Some of the operations raise exception under normal circumstances (e.g. after running a crop, the same parameters are used to redraw the preview, but fail because the input dimensions are different). So the operations window catches and displays the error. Unfortunately this hides actual errors from the system tests.
This change introduces a small allow list of error messages. Any thing else will count as a test failure.
Testing & Acceptance Criteria
Add a
raise RuntimeError("hello")
into one of the operations and check that the system-test failsDocumentation
Release notes