QA: target action menu text, not titles.

Change-Id: Ic638979fd24d84f66921d93a5eb2093945e8525b
QA: Fix the action menu permalink tests

Note the degrading in functionality - reply is broken

Add a new test for permalink for topic.
Update template so that it removes whitespace (When selecting
elements in the browser tests ' Permalink ' is different from 'Permalink'
so the test will fail without this change. May want to revisit other
template elements in future)

Change-Id: Ic0d972df738c3ca7858a33c136ee776ac8782e64
Merge "QA: target action menu text, not titles." into frontend-rewrite
Merge "QA: Fix the action menu permalink tests" into frontend-rewrite