How do I test links in templates?


Hello everyone!

Sorry, if it’s stupid question, but I can’t figure out how to do this.
I have a set of statements, for example, ‘login page should have a
link to register new user’ and ‘login page should have a link to
password recovery’. How do I transform it into tests? Where it should
go? It does not look like functional tests or integration tests. To
me, it looks like ‘template test’. How do you suggest to test these




Hi Oleg.

I believe you can put these tests into your functional tests, using the
assert_tag method to test for the presence of these links. But maybe
someone with more experience can correct me.