- π¬π§United Kingdom adamps
Thanks for the reply. Yes I was already aware that I can fix the test in the way you suggest. However I originally raised the issue because something has changed in the node access (the tests was working before and now they fail) and it seemed potentially important.
However what you wrote about the different permissions is of course correct. I did some more investigation and it seems that the test user never had access to view the unpublished node. What has changed is:
- before: there was a link to view the node which would fail if clicked
- now: Drupal views has somehow spotted that the node isn't accessible and doesn't even put a link at all which causes the test to fail as it specifically looks for the a tag
The new behaviour seems more correct. Anyway it's a pretty strange case, because the test user has 'administer nodes' permission but not 'access content'. It seems like I can just close this now.