testy icon indicating copy to clipboard operation
testy copied to clipboard

[bug] tests expected to fail pass even if the expected message doesn't match the actual error message

Open beluamat29 opened this issue 1 year ago • 0 comments

Describe the bug

When running a test that's expected to fail using expectFailureOn() the test passes even if the expected error message doesn't match the actual error message from the test run

Version(s) affected

To Reproduce

  • Add a test you expect to fail, or modify one of the existing ones making the I18nMessage sent as argument in expectFailureOn() be any random string. image

  • Run the test and verify that the test passes image

Expected behavior

The message from the assertion failure should match the one expected in the test file. If they don't match the test should not pass

beluamat29 avatar May 08 '24 12:05 beluamat29