I am using tabnav plugin to train and I want to use rpsec to highlight it properly I .
The only real thing to test here is whether the name of a particular class is applied or not If highlighting comes from a class name If so, you can has_tag ( "li.highlighted" ,: text = & gt; "account settings")
.
Otherwise, you probably should not automate your testing whether or not the CSS selector should implement it properly or not. This is a purely presentation description, and in fact it is not that the testing room is designed to be tested. I doubt that is going through Webrat and would not bother to apply to your stylesheet, so check that expansion is not possible, do not tell me that you can only check in with a page load or not, Whether it's working or not - After all, you can definitely test your stylesheet as you design it .
Anyway your question does not really clarify what you are actually trying to test, but you should not test the presentation, anyway. It is good to test the structure of the HTML document, but it confirms how the client interprets the program document, not the role of a designer, not a programmer. (If you wear both cap, but do not mix your food.)
Comments
Post a Comment