Ok that's interesting. My wiki user is able to use edit the page and the test passes so it looks like an issue with the wiki user as I have a test user which doesn't have the edit link.