Confirmed users
2,959
edits
Line 88: | Line 88: | ||
== Test Cases and Results == | == Test Cases and Results == | ||
Brain dump of ideas for test cases is below. Work in progress. | |||
* Test that I can make an in-app purchase against the mock payment provider | |||
* Test that I can choose and select between two different payments if multiple JWTs are requested | |||
* Test that I receive a phone call while I'm in the trusted UI, that I can complete the phone call and return to the trusted UI context | |||
* Test that I can be notified with a connection failure if there's no connection while I'm in the trusted UI | |||
* Test that I can leave the trusted UI context back to the homescreen | |||
* Test that I can return back to an existing trusted UI context by entering an app in that context currently | |||
* Test that I can see which apps in task manager are in a trusted UI context vs. not | |||
* Test that I can deny an in-app purchase through the trusted UI context | |||
* Test that I can run multiple trusted UI contexts across different apps for different payments | |||
* Test that I can exit to the task switcher while I'm in the trusted UI context | |||
* Test that I can exit to the lockscreen while I'm in the trusted UI context | |||
* Test that I can return to a trusted UI context from the lockscreen | |||
* Test that I can return to a trusted UI context through the task switcher | |||
* Test that I cannot request a trusted UI context within a background page running | |||
* Test that I get an error and no trusted UI context when I request an invalid payment provider (aud wrong) | |||
* Test that I get an error and no trusted UI context when I request an invalid payment provider (typ wrong) | |||
* Test that I get an error and no trusted UI context when I request an invalid payment provider (typ not specified) | |||
* Test that I get an error and no trusted UI context when I request an invalid JWT (exp non-numerical) | |||
* Test that I get an error and no trusted UI context when I request an invalid JWT (iat non-numerical) | |||
* Test that I get an error and no trusted UI context when I request an invalid JWT (iss non-numerical) | |||
* Test that I get an error and no trusted UI context when I request an invalid JWT (request not specified) | |||
* Test that I get an error and no trusted UI context when I request an invalid JWT (name not specified) | |||
* Test that I get an error and no trusted UI context when I request an invalid JWT (price not specified) | |||
* Test that I get an error and no trusted UI context when I request an invalid JWT (price not valid) | |||
* Test that I get an error and no trusted UI context when I request an invalid JWT (invalid currency) | |||
* Test that I get an error and no trusted UI context when I request an invalid JWT (non-numerical price) | |||
* Test that I get an error and no trusted UI context when I request an invalid JWT (non-numerical defaultPrice) | |||
* Test that I get an error and no trusted UI context when I request an invalid JWT (description not specified) | |||
* Test that I get an error and no trusted UI context when I request an invalid JWT (productdata not a valid URL) | |||
* Test that I get an error and no trusted UI context when I request an invalid JWT (productdata not a valid URL) | |||
* Test that I get an error and no trusted UI context when I request an invalid JWT (iat >= exp) | |||
* Test that I get an error and no trusted UI context when I request an invalid JWT (not valid JSON) | |||
* Test that I get an error when I request two JWTs with the same payment provider | |||
* Test that I can make an in-app payment with no iss specified |