testy
testy copied to clipboard
[bug] tests expected to fail pass even if the expected message doesn't match the actual error message
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. -
Run the test and verify that the test passes
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