CLC-3507: Don't call /record_first_login when viewing as
https://jira.ets.berkeley.edu/jira/browse/CLC-3507
Merge pull request #2313 from christianv/CLC-3507

CLC-3507: Don't call /record_first_login when viewing as
Tried to make an integration test that asserts the rendered
act-as footer html with a regular expression, but saw that this
will not work

It's possible to check for hardcoded text with regular expressions on the
rendered html, but there's no apparent way to detect the rendered html

For example page.body contains the anuglar markup, not what a user sees as rendered:

<p>
 You're currently viewing as <span data-ng-bind="api.user.profile.full_name"></span> (<span data-ng-bind="api.user.profile.uid"></span>)
 <button class="cc-button cc-button-blue cc-right" data-ng-click="admin.stopActAs()" type="button">Stop viewing as</button>
</p>

So, how can we test this?????
Trying to work on 2 tests that check the footer of viewed-as
users that have or that have not logged in before.
the firstLoginAct should be nil and instead of not be_empty
Fixed text in the view as footer when a user has

- logged in before: You're currently viewing as PREFERRED_NAME (UID), last logged on MM/DD/YY
- never logged in before: You're currently viewing as (UID) who has never logged in to CalCentral

* Note this depends on a bugfix in the hands of Cristian:
  [ETS JIRA] (CLC-3507) Don't call /record_first_login when viewing as
Added the /m floag to the regular expressions that test that
the correct texts are in place, although it cannot guarantee
that angular will render the correct ones under the correct
circumstances.