Fix fragile tests (should use 'has_css' matcher instead of 'include') #158
Labels
bug
About something that is broken
good first issue
This issue should be suitable for less experienced developers
help offered
I would be very happy to help less experienced developers tackle this issue (advice/pairing/etc)
tests
Tests and test infrastructure (CI, etc)
There are still several fragile tests that do something like
expect( response.body ).not_to include a_test_string
- this breaks occasionally when the test string is something that crops up in words used elsewhere in the page (e.g. 'tin' when using Faker::Science.elements). These tests should be made more specific using has_css to target the correct HTML element (and then hopefully I can remove the 'string_string'' kludge that's currently in a bunch of the factories).The text was updated successfully, but these errors were encountered: