Closed nimmolo closed 3 months ago
Update: This PR does have some things we may want to keep:
xpath
. xpath selectors tend to be brittle if HTML is reorganized.@mo-nathan — I just converted your original short system tests to equally short integration tests, as we discussed a couple weeks ago. I think keeping the tests separate preserves your original intent.
Note the addition of selector classes to the templates, so we don't have to use XPATH selectors in our tests - much easier.
@mo-nathan I am realizing this will affect your #2160 Field Slip Forms PR.
I believe it is an improvement on the form HTML, particularly the selectors, and makes the tests less brittle. If you like, I'll be happy to check #2160 over and reconcile these changes with that PR.
Ok thanks, I will merge. Just say the word and I'll either reconcile it with #2160, or offer suggestions - I realize this creates extra work on a long-running PR of yours and that you're probably not wanting any added confusion with it.
Refactors the
field_slips_test
as integration tests. Should run faster and be just as effective.Background:
With system tests, they're slow and we only really need them if we're testing JS.