ubuntu-system-settings-online-accounts
Test Case: ubuntu-system-settings-online-accounts/system-settings
Procedure
Ensure that Online Accounts appears in the System Settings application
There should be an item called Accounts (modulo translations)
- Tap on the Online Accounts item
<dd>The Online Accounts window should appear, listing any existing
accounts</dd>
Test Case: ubuntu-system-settings-online-accounts/account-create
Procedure
Tap on Add account
- The list of installed account providers will appear
Choose Google
- The web authentication form should appear after some seconds
- Enter your credentials, grant requested permissions
- After some seconds, the view should return to the main screen
- The new Google account should appear
- The username should be visible
Test Case: ubuntu-system-settings-online-accounts/account-edit
Procedure
- Tap on an existing Google account
- A new page will appear
The title will be Google
- The ID field will show your username
- All applications which can use this account will be listed
- All applications which which have been granted access to the account will be enabled
Test Case: ubuntu-system-settings-online-accounts/account-remove
Procedure
- Tap on an existing Google account
- A new page will appear, with the account details
Tap on the Removebutton
- A confirmation dialog will appear
- Deny the confirmation
- The dialog will be dismissed
- The page with the account details is still there
Tap on the Removebutton
- A confirmation dialog will appear
- Confirm the deletion
- The dialog will be dismissed
- The view will go back to the main view
- The Google account will no longer be there
Test Case: ubuntu-system-settings-online-accounts/provider-data
Procedure
Get the test application (source) and install it:
pkcon install-local --allow-untrusted it.mardy.account-tester_*_all.click
- Start the "Account Provider Tester" application
- Tap on the "Create account" button
- A new page will open, listing the available account types for this application
- Verify that display names and icons are set for all providers
Test Case: ubuntu-system-settings-online-accounts/access-creation
Procedure
Get the test application (source) and install it:
pkcon install-local --allow-untrusted it.mardy.account-tester_*_all.click
In System Settings > Online Accoints, tap on Add account
- The list of installed account providers will appear
Choose Account Tester
- A form with username and password fields will appear
Type in any username and password, tap on Continue
- The view will move back to the account list
- The newly added account will be there
- Start the test click application
It will show the list of accounts of type Account Tester (currently 1)
- The account will have a red frame around it. The red frame means that the account is not enabled for this application, and that consequently the application should not be able to authenticate with it.
- Tap on the account to test the authentication
note that you need the signon-apparmor-extension package to be installed for this test to work; see https://bugs.launchpad.net/signon-apparmor-extension/+bug/1372390 for the actual status
- In the "Result" field an error code should appear
Tap on Request Access
- A window will appear, asking whether you want to grant access to the existing account, or allows to create another account
- Grant access to the existing account
- The view will go back to the test application (on unity8, note that you might need to swipe from the right border of the device, in order to refresh the view)
- The account will now have a green frame around it
- Tap on the account to test the authentication
- In the "Result" field the account password should appear
Test Case: ubuntu-system-settings-online-accounts/single-account
Procedure
- Ensure that certain account types are unique
- The system limits the Ubuntu One or Facebook identities to just one account
- Tap on the Online Accounts item
- Tap on Add Account
- Create a U1 account
- The system goes back to the list of accounts
- Tap on Add Account
- Verify that the U1 account type is now inactive and that you cannot add another U1 account
- Remove the U1 account
- Verify that you can again add a U1 account with the above procedure
Note: you can replace U1 with Facebook to vary tests
Test Case: ubuntu-system-settings-online-accounts/password-query
Procedure
Get the test application (source) and install it:
pkcon install-local --allow-untrusted it.mardy.account-tester_*_all.click
- Start the test click application
Tap on Request Access
- A window will appear, with a login form
Type in any username and password, tap on Continue
- The view will move back to the application
- The newly added account will be there
- The account will now have a green frame around it
- Tap on the account to test the authentication
- In the "Result" field the account password should appear
- Now enable the "Request password from user" checkbox
- Tap on the account to test the authentication
- A page with a password field will appear
- Type any password into the password field, then type Enter
- The view will move back to the application
- In the "Result" field the new account password should appear (if it doesn't, try switching to the task switcher and back to the app again)
Test Case: online-accounts-api/password-authentication
Procedure
Get the test application (source) and install it:
pkcon install-local --allow-untrusted it.mardy.account-tester_*_all.click
- Start the "Owncloud auth tester" click application
Tap on Request Access
- A window will appear
- Either grant access to your existing owncloud account, or create a new one
- The view will move back to the application
- The newly added account will be there
- The account will now have a green frame around it
- Tap on the account to test the authentication
- In the "Result" field the account password should appear
Test Case: ubuntu-system-settings-online-accounts/scope-support
Procedure
- Navigate to the Facebook (or Facebook Photos) scope
- Press the login button at the bottom of the scope page
- Verify that you are prompted to add an account or authorize the one already present
- Create or Authorize the account
- Verify that you return to the Facebook scope and that your personalized content appears
Test Case: online-accounts/pay_ui-support
Procedure
- Navigate to App scope
- Search for price:2.99 and touch the App Store icon
- Select one of the paid applications that appear in the result list
- Touch the price button to begin buying the app
- Verify that a trust prompt appears (from the bottom) with an Ubuntu One prompt to authenticate
- Once authenticated, verify that you reach the payment screen for the app, letting you choose the payment method and confirmation
- Note: you can cancel the payment at this stage
Test Case: online-accounts/weibo_support
This is to test that this fix (bug #1415376) is properly working, by using the Weibo account plugin which exposed the issue in the first place.
Procedure
Install the Weibo HTML5 app, which contains a Weibo account plugin: http://people.canonical.com/~davidbarth/html5-weibo.ubuntu_0.1_all.click
Go into System Settings > Accounts > Add Account
- Verify that the Weibo account type is listed
- Proceed to adding an account to your system
- Verify that the account creation completes
- Go to apps and look for the Weibo HTML5 App
- Authorize the use of the Weibo account you created previously
Process/Merges/TestPlan/ubuntu-system-settings-online-accounts (last edited 2016-11-15 13:12:55 by localhost)