QA/Fennec/43 Replace Android native Firefox Accounts implementation with web based implementation

From MozillaWiki
< QA‎ | Fennec
Jump to: navigation, search

Feature Reference

  • Overal Status:
    • Nightly:
    • Aurora:
    • Beta:
    • Owner:(Mihai Ninu, irc: MihaiNinu)

Requirements

  • We'd like to unify our sign up/sign in experience across platforms: Desktop, Android, and iOS.
  • We don't collect metrics on our sign up/sign in experience on Android.
  • We can't easily A/B test our experience in native code.
  • We lag to re-implement UX improvements on Android that are done first on the web. (Floating suggestion text out of text boxes; auto-correcting typed email addresses; completely changing the COPPA sign in flow).
  • We're almost certainly never going to implement a whole class of features that are very web-centric, like third party OAuth flows.
  • Eventually, we may want flexibility around where keys come from. In this case we may want to use kA from the auth server.

User Stories

  • Turn on web Firefox Accounts UI in Nightly
Manage account.jpg
Test Scenarios
1. Fresh Fennec, "Sign in to Sync" during the First Run experience.
2. Fresh Fennec, don't sign in during First Run, navigate to Settings > Sync and "sign up".
3. Fresh Fennec, but instead of "sign up" for a new account, "sign in" to an existing account.
4. Connect Fennec.  Change the account password on a different device.  (Desktop.)  Force a Sync in Fennec; observe "you need to connect" notification.  Re-connect using the web interface.  Verify that Sync is working correctly.
5.  Connect Fennec.  Go to Sync > Settings and "Manage account".  Change the Avatar; verify that you see a fresh avatar in the Sync > Settings menu.
6. Connect Fennec.  Go to Sync > Settings and "Manage account".  Change the account password.  Verify that Sync continues to work correctly.  On a different device, verify that you need to update the password for Sync to continue.
7. Remove any existing Accounts.  Put your device in Airplane mode.  Go to Sync > Settings.  You should see an Internet connection required screen in about:accounts.
8. Start Guest Browsing.  Navigate to "about:accounts" manually.  You should see a "you're restricted" screen.
9. Connect Fennec to an account.  Remove that Account from Sync > Settings and the menu item.  Try to connect Fennec to an account with a *different* email address.  You should see an "are you sure" dialog, but you should be able to both "opt out" (and not connect) or "opt in" and connect to the new account.


  • Move "Remove Account" out of menu and to last list item in FxAccountStatusActivity
Screenshot 2015-10-19-11-40-58.png
Test Scenarios
1.Log in with a valid Firefox account
2.Go to Customize-Sync menu
"Remove account" button is replaced by "Disconnect..." button that is placed under "Device name" section
  • 'Old password' pre-filled in accounts.firefox.com/settings/change_password
'Old password' pre-filled.png
Test Scenarios
1. Go to accounts.firefox.com and sign in with a valid account
2. Go to accounts.firefox.com/settings/change_password
The 'Old password' input field is pre-filed with your current password
1. Go to accounts.firefox.com and sign in with a valid account
2. Go to accounts.firefox.com/settings/Delete_account
The 'Password' input field is pre-filled with your current password
  • Improve Firefox Account and Sync notifications in Fennec
Screenshot 2015-10-19-14-50-48 (1).png

Test Scenarios

1. User signs up/signs in or re-authenticates with a valid account
Show a "Welcome to Sync" or "Welcome back to Sync" notification with a Sync icon with a check mark in the middle
  • Implement automatic login to accounts.firefox.com from a native Android Firefox Account. & Implement web based Firefox Account sign up/sign in activity
Test Scenarios
1. User signs in with valid account from first page or Customize-Sync 
2. User navigates to accounts.firefox.com
Manage account menu is displayed, no password requirement when accessed
1. User navigates to accounts.firefox.com and logs in a valid account
2. User visits Settings-Customize-Sync
Previously logged account should be displayed in the settings page also and the user should be logged in.
  • Support "choose what to Sync" on the web in Fennec
Screenshot 2015-10-29-11-30-05.png
Test Scenarios
1. Create a new Firefox account and select what to sync
2. With the same account connect on another device and Sync
The second client picks up Sync options that were selected at step 1.

Bug tracking

ex:

Full Query
ID Summary Priority Status
951306 Implement "sign in via web" bug-out option in Android native Firefox Account UI P3 RESOLVED
1161234 Implement web based Firefox Account sign up/sign in activity -- RESOLVED
1178924 Implement automatic login to accounts.firefox.com from a native Android Firefox Account -- RESOLVED
1191068 Support "choose what to Sync" on the web in Fennec -- RESOLVED
1205418 Add "manage account" link to Status Activity -- RESOLVED
1205734 Turn on web Firefox Accounts UI in Nightly -- RESOLVED
1205754 Improve Firefox Account and Sync notifications in Fennec -- RESOLVED
1205817 Move "Remove Account" out of menu and to last list item in FxAccountStatusActivity -- RESOLVED
1213812 'Old password' pre-filled in accounts.firefox.com/settings/change_password -- RESOLVED
1216100 "Sync preferences" button has no valid action in "welcome to sync" page -- RESOLVED

10 Total; 0 Open (0%); 10 Resolved (100%); 0 Verified (0%);


Moztrap

Testing details

Date: 30-09-2015

thumb|center|