Skip to content

Commit 6d75b53

Browse files
authored
Merge pull request #5812 from woocommerce/update-ui-test-coverage-list
Update test coverage list
2 parents 0a7f081 + 9f8d986 commit 6d75b53

File tree

1 file changed

+46
-4
lines changed

1 file changed

+46
-4
lines changed

docs/UI-TESTS.md

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,50 @@ WooCommerce for iOS has UI acceptance tests for critical user flows through the
44

55
## Test coverage
66

7-
The following user flows are covered with UI tests:
8-
9-
* [Login](../WooCommerce/WooCommerceUITests/Tests/LoginTests.swift):
10-
* Log in with email/password and log out
7+
The following flows are covered/planned to be covered by UI tests. Tests that are covered will be checked.
8+
9+
1. [Login](../WooCommerce/WooCommerceUITests/Tests/LoginTests.swift):
10+
- [x] Log in with Store Address
11+
- [x] Log in with email/password
12+
- [x] Invalid password
13+
- [ ] Log in with magic link
14+
- [ ] Log in with Apple
15+
- [ ] Log in with Google
16+
2. [My Store]()
17+
- [ ] Stats Today, This Week, This Month, This Year load
18+
- [ ] Tap chart on stats
19+
3. [Orders](../WooCommerce/WooCommerceUITests/Tests/OrdersTests.swift)
20+
- [ ] Orders list and single order screens load
21+
- [ ] View product on single order screen
22+
- [ ] Add customer note
23+
- [ ] Add order note
24+
- [ ] Update order status
25+
- [ ] Issue refund
26+
- [ ] Add shipping details
27+
4. [Products](../WooCommerce/WooCommerceUITests/Tests/ProductsTests.swift)
28+
- [x] Products list and single product screens load
29+
- [ ] Add new product - Simple physical product
30+
- [ ] Add new product - Simple virtual product
31+
- [ ] Add new product - Variable product
32+
- [ ] Add new product - Grouped product
33+
- [ ] Add new product - External product
34+
- [ ] Search for product
35+
- [ ] Filters for product
36+
- [ ] Edit product
37+
- [ ] Add media library image to existing product
38+
- [ ] Add camera image to existing product
39+
5. [Reviews](../WooCommerce/WooCommerceUITests/Tests/ReviewsTests.swift)
40+
- [x] Reviews list and single review screens load
41+
- [ ] Mark review as spam
42+
- [ ] Trash review
43+
- [ ] Approve/unapprove review
44+
- [ ] Undo action
45+
6. [Push Notifications]()
46+
- [ ] New order results in a push notification
47+
- [ ] Orders push notification opens the correct order
48+
- [ ] Reviews push notification opens the correct review
49+
7. [Settings]()
50+
- [ ] Contact support
1151

1252
## Running tests
1353

@@ -35,6 +75,8 @@ It's preferred to focus UI tests on entire user flows, and group tests with rela
3575

3676
When you add a new test, you may need to add new screens and methods. We use [screen (page) objects](https://www.martinfowler.com/bliki/PageObject.html) and method chaining for clarity in our tests. Wherever possible, use an existing `accessibilityIdentifier` (or add one to the app) instead of a string to select a UI element on the screen. This ensures tests can be run regardless of the device language.
3777

78+
When adding a new test case, please mark the test case as done on the list above. If the test case is not on the list, please add it to the list and mark it as done.
79+
3880
## Adding or updating network mocks
3981

4082
When you add a test (or when the app changes), the request definitions for WireMock need to be updated. You can read the [WireMock documentation](http://wiremock.org/docs/) for more details.

0 commit comments

Comments
 (0)