Confirmed users
2,959
edits
(48 intermediate revisions by the same user not shown) | |||
Line 24: | Line 24: | ||
|} | |} | ||
== | == Overview == | ||
* API testing to ensure the JS API handles general valid and invalid input cases with the right success/error callbacks | This document will cover testing the web payment API that tests the API itself and the trustworthy UI used on device. Other portions of payment testing such as identity integration, marketplace integration, etc shall be covered in different docs. Therefore, the testing is broken into two areas here: | ||
* End-to-End functional testing with mozPay and trustworthy UI - Ensure | * API and JWT testing to ensure the JS API handles general valid and invalid input cases with the right success/error callbacks | ||
* End-to-End functional testing with mozPay and trustworthy UI isolating marketplace bits out - Ensure trustworthy UI use cases work as expected | |||
== Edge Cases == | == Edge Cases == | ||
* | * First vs. second page of trusted context | ||
* Multiple JWT requests - same vs. different payment providers | |||
* | * Web activities firing during trusted UI flow (e.g. phone call) | ||
* No network connection | |||
* Temporary vs. permanent exit of trusted UI context | |||
* Returning to an existing trusted UI context from lockscreen, task switcher, etc | |||
* Trusted UI context in the task manager | |||
* | * Canceling purchases | ||
* Multiple trusted UI contexts running | |||
* Exit to task switcher, lockscreen, etc | |||
* Background pages & payments | |||
* Invalid JWT values for client-side validation | |||
* | * Keyboard use during trusted UI context | ||
* | |||
* | |||
* | |||
* | |||
* | |||
* | |||
* | |||
* | |||
* | |||
== Signoff Criteria == | == Signoff Criteria == | ||
Line 63: | Line 53: | ||
== Test Case Management == | == Test Case Management == | ||
* Test cases shall be tracked in MozTrap tagged with "gaia" and "payments" | |||
== Infrastructure == | == Infrastructure == | ||
* A mock payment provider shall be used for testing the payment API and trustworthy UI - [https://github.com/ferjm/mockpayprovider Mock Payment Provider] | |||
* A payments test case repository shall be used for tracking test cases - [https://github.com/ferjm/Payment-tests Payment Tests] | |||
== Automation == | == Automation == | ||
= | '''Tracking bug:''' [https://bugzilla.mozilla.org/show_bug.cgi?id=777023 bug 777023] | ||
* Zac Campbell is looking into this - primarily aiming to target front-end automation in Marionette in python | |||
== | == Test Cases == | ||
= | Test cases for this feature can be found [https://moztrap.mozilla.org/manage/cases/?filter-suite=183 here]. | ||
== | == References == | ||
* | * [https://docs.google.com/spreadsheet/ccc?key=0AiZoGR-iOAlUdDZFdjREckFkb3dkSWl0Y0lIRmp2d0E#gid=0 Initial Test Pass on 11/9 & 11/12] | ||