OH Testing: UC-10

## Summary

This is a specific testing issue for use case 10 on https://gitlab.com/groups/gitlab-org/-/epics/6606

### Testing DRIs

|Tester ID | Tester Name | Status |
|:---:|---|---|
| 1 | @tyleramos | :white_check_mark: Completed & Passed |
| 2 |  |  |

### UC-10: Customer renews an existing EoA subscription
<details>
<summary>UC-10a: Self-managed subscription</summary>

| Step ID | Test Step   | Description | Expected Outcome | Testable? | Pass/Fail |
|---------|--------|----|----------|:---:|:---:|
| T-1     | Login to Zuora | Login to Zuora Central Sandbox and go to the [Customer Account list](https://test.zuora.com/apps/CustomerAccount.do?menu=Z-Billing). Search for the customer account you use in customers.staging.gitlab.com by email address and click on the Customer Account. | On the Customer Account Page | N | |
| T-2     | Prep a Zuora Order | From the Customer Account page, click on the "Create Order" button from the Customer Account page. Click the "Create Subscription" button. Leave the default settings except set the following custom fields in Zuora to `Yes`: `EoA Starter Bronze Offer Accepted?`, `Contract Auto Renew`, `Contract Seat Reconciliation`, `Contract Operational Metrics`, `Turn On Seat Reconciliation`, `Turn on Auto Renew`, `Turn On Operational Metrics`.  Click the "Continue" button. | On the screen to pick Products and Charges. | N | |
| T-3     | Select the Product | From the Products screen, search for "Self-Managed - Premium" and expand the list of Charges.  Check the box for "Self-Managed - Premium - 1 Year". Click the "Add Product" button at the bottom of the page. Click the "Review Order" button. If all looks good, click the "Activate" button. | A completed Order which created a subscription with the SM Premium 1 yr plan. | Y | |
| T-4     | Receive email with legacy license and activation code | Receive the activation code and legacy license key via email. | The email should contain an activation code and the legacy license key. | Y | |
| T-5     | View subscription details | Navigate to the "Manage Subscription" page in CustomersDot staging to verify the subscription details are accurate. | Subscription details show the correct Start date, Purchase date, Product, and Quantity (1). | Y | |
| T-6     | Process a Bill Run | Process a bill run in Zuora for the customer so future web store pricing is correct. Follow [these instructions](https://gitlab.com/gitlab-org/customers-gitlab-com/blob/d537a1c591ca45d56d7029b79bcf4a9d23a3eb78/doc/flows/sales_assisted_subscription_creation_workflow.md). | Verify the renewal price is discounted to be $6 per seat per month ($72 a year). | Y | |
| T-7     | View the Renewal page | From the "Manage Subscription" page in CustomersDot staging, click the "Renew" button. | Verify the renewal price is discounted to be $6 per seat per month ($72 a year). | Y | |
| T-8     | Renew the subscription | Confirm the renewal | (1) Verify the subscription was renewed for the next term and displays correctly in CustomersDot. <br><br> (2) Verify 2 Orders (each with their own amendment) were created in Zuora: one for the renewal and another for the Update Product (price uplift). The price uplift should have the key description `EoA Bronze / Starter Price Uplift`. | Y | |
| T-9     | View another Renewal | From the "Manage Subscription" page in CustomersDot staging, click the "Renew" button again. | Verify the renewal price is discounted to be $9 per seat per month ($108 a year). | Y | |
| T-10    | Renew the subscription | Confirm the renewal | (1) Verify the subscription was renewed for the next term and displays correctly in CustomersDot. <br><br> (2) Verify 2 Orders (each with their own amendment) were created in Zuora: one for the renewal and another for the Update Product (price uplift). The price uplift should have the key description `EoA Bronze / Starter Price Uplift`. | Y | |

</details>

<details>
<summary>UC-10b: SaaS subscription</summary>

| Step ID | Test Step   | Description | Expected Outcome | Testable? | Pass/Fail |
|---------|--------|----|----------|:---:|:---:|
| T-1     | Login to Zuora | Login to Zuora Central Sandbox and go to the [Customer Account list](https://test.zuora.com/apps/CustomerAccount.do?menu=Z-Billing). Search for the customer account you use in customers.staging.gitlab.com by email address and click on the Customer Account. | On the Customer Account Page | N | |
| T-2     | Prep a Zuora Order | From the Customer Account page, click on the "Create Order" button from the Customer Account page. Click the "Create Subscription" button. Leave the default settings except set the following custom fields in Zuora to `Yes`: `EoA Starter Bronze Offer Accepted?`, `Contract Auto Renew`, `Contract Seat Reconciliation`, `Turn On Seat Reconciliation`, `Turn on Auto Renew`.  Click the "Continue" button. | On the screen to pick Products and Charges. | N | |
| T-3     | Select the Product | From the Products screen, search for "SaaS - Premium" and expand the list of Charges.  Check the box for "SaaS - Premium - 1 Year". Click the "Add Product" button at the bottom of the page. Click the "Review Order" button. If all looks good, click the "Activate" button. | A completed Order which created a subscription with the SM Premium 1 yr plan. | Y | |
| T-4     | Receive email for purchase | Receive an email indicating the purchase was successful and instructions for assigning the namespace for the subscription. | The email should contain instructions for assigning the namespace for the subscription. | Y | |
| T-5     | View subscription details | Navigate to the "Manage Subscription" page in CustomersDot staging to verify the subscription details are accurate. | Subscription details show the correct Start date, Purchase date, Product, and Quantity (1). | Y | |
| T-6     | Process a Bill Run | Process a bill run in Zuora for the customer so future web store pricing is correct. Follow [these instructions](https://gitlab.com/gitlab-org/customers-gitlab-com/blob/d537a1c591ca45d56d7029b79bcf4a9d23a3eb78/doc/flows/sales_assisted_subscription_creation_workflow.md). | Verify the renewal price is discounted to be $6 per seat per month ($72 a year). | Y | |
| T-7     | View the Renewal page | From the "Manage Subscription" page in CustomersDot staging, click the "Renew" button. | Verify the renewal price is discounted to be $6 per seat per month ($72 a year). | Y | |
| T-8     | Renew the subscription | Confirm the renewal | (1) Verify the subscription was renewed for the next term and displays correctly in CustomersDot. <br><br> (2) Verify 2 Orders (each with their own amendment) were created in Zuora: one for the renewal and another for the Update Product (price uplift). The price uplift should have the key description `EoA Bronze / Starter Price Uplift`. | Y | |
| T-9     | View another Renewal | From the "Manage Subscription" page in CustomersDot staging, click the "Renew" button again. | Verify the renewal price is discounted to be $9 per seat per month ($108 a year). | Y | |
| T-10    | Renew the subscription | Confirm the renewal | (1) Verify the subscription was renewed for the next term and displays correctly in CustomersDot. <br><br> (2) Verify 2 Orders (each with their own amendment) were created in Zuora: one for the renewal and another for the Update Product (price uplift). The price uplift should have the key description `EoA Bronze / Starter Price Uplift`. | Y | |

</details>

<details>
<summary>UC-10c: SaaS subscription with an Add-on</summary>

| Step ID | Test Step   | Description | Expected Outcome | Testable? | Pass/Fail |
|---------|--------|----|----------|:---:|:---:|
| T-1     | Login to Zuora | Login to Zuora Central Sandbox and go to the [Customer Account list](https://test.zuora.com/apps/CustomerAccount.do?menu=Z-Billing). Search for the customer account you use in customers.staging.gitlab.com by email address and click on the Customer Account. | On the Customer Account Page | N | |
| T-2     | Prep a Zuora Order | From the Customer Account page, click on the "Create Order" button from the Customer Account page. Click the "Create Subscription" button. Leave the default settings except set the following custom fields in Zuora to `Yes`: `EoA Starter Bronze Offer Accepted?`, `Contract Auto Renew`, `Contract Seat Reconciliation`, `Turn On Seat Reconciliation`, `Turn on Auto Renew`.  Click the "Continue" button. | On the screen to pick Products and Charges. | N | |
| T-3     | Select the Product | From the Products screen, search for "SaaS - Premium" and expand the list of Charges.  Check the box for "SaaS - Premium - 1 Year". Click the "Add Product" button at the bottom of the page. Click the "Review Order" button. If all looks good, click the "Activate" button. | A completed Order which created a subscription with the SM Premium 1 yr plan. | Y | |
| T-4     | Receive email for purchase | Receive an email indicating the purchase was successful and instructions for assigning the namespace for the subscription. | The email should contain instructions for assigning the namespace for the subscription. | Y | |
| T-5     | View subscription details | Navigate to the "Manage Subscription" page in CustomersDot staging to verify the subscription details are accurate. | Subscription details show the correct Start date, Purchase date, Product, and Quantity (1). | Y | |
| T-6     | Process a Bill Run | Process a bill run in Zuora for the customer so future web store pricing is correct. Follow [these instructions](https://gitlab.com/gitlab-org/customers-gitlab-com/blob/d537a1c591ca45d56d7029b79bcf4a9d23a3eb78/doc/flows/sales_assisted_subscription_creation_workflow.md). | Verify the renewal price is discounted to be $6 per seat per month ($72 a year). | Y | |
| T-7     | Purchase a Storage Add-on | Navigate to Settings -> Usage quotas in staging.gitlab.com for your Group. Click on the tab for "Storage", then click the link to "Buy additional storage". Fill in the form leaving quantity at 1 and confirm the purchase. | Purchase flow is successful. | Y | |
| T-8     | View the Renewal page | From the "Manage Subscription" page in CustomersDot staging, click the "Renew" button. | Verify the renewal price is discounted to be $6 per seat per month ($72 a year). | Y | |
| T-9     | Renew the subscription | Confirm the renewal | (1) Verify the subscription was renewed for the next term and displays correctly in CustomersDot. <br><br> (2) Verify 2 Orders (each with their own amendment) were created in Zuora: one for the renewal and another for the Update Product (price uplift). The price uplift should have the key description `EoA Bronze / Starter Price Uplift`. | Y | |
| T-10    | View another Renewal | From the "Manage Subscription" page in CustomersDot staging, click the "Renew" button again. | Verify the renewal price is discounted to be $9 per seat per month ($108 a year). | Y | |
| T-11    | Renew the subscription | Confirm the renewal | (1) Verify the subscription was renewed for the next term and displays correctly in CustomersDot. <br><br> (2) Verify 2 Orders (each with their own amendment) were created in Zuora: one for the renewal and another for the Update Product (price uplift). The price uplift should have the key description `EoA Bronze / Starter Price Uplift`. | Y | |

</details>

Story points: 1.0