fix(signin): cache credentials for desktop sign-ins, otherwise only cach...

...e email

fixes #1621

@ckarlof r?
We need the context to be desktop for this test, but we still want the page
to navigate.
On Sep 5, 2014 5:32 PM, "Vlad Filippov" <notifications@github.com> wrote:

> In app/scripts/views/sign_in.js:
>
> > @@ -133,7 +133,11 @@ function (_, p, BaseView, FormView, SignInTemplate, Constants, Session, Password
> >      onSignInSuccess: function() {
> >        // Don't switch to settings if we're trying to log in to
> >        // Firefox. Firefox will show its own landing page
> > -      if (Session.get('context') !== Constants.FX_DESKTOP_CONTEXT) {
> > +      // Also show settings if an automatedBrowser flag has been set,
> > +      // so that webdriver tests have indication that the
> > +      // flow is done.
> > +      if (Session.get('context') !== Constants.FX_DESKTOP_CONTEXT ||
> > +          this.automatedBrowser) {
>
> Set the context instead with .execute.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/mozilla/fxa-content-server/pull/1626/files#r17205264>.
>