Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit e7c0454

Browse files
author
Tarun Vijwani
committed
Fix developer testing instruction for 10773 PR
1 parent 34296a4 commit e7c0454

File tree

1 file changed

+10
-12
lines changed
  • docs/internal-developers/testing/releases

1 file changed

+10
-12
lines changed

docs/internal-developers/testing/releases/1120.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.
7979

8080
![Screenshot 2023-09-01 at 13 53 30](https://github.com/woocommerce/woocommerce-blocks/assets/90977/382a608a-ffc0-4529-976f-f2b58822bab9)
8181

82-
#### Developer tests
83-
84-
Install a 3rd party extension which adds something to the order confirmation page. Confirm that the extension renders it's content on the new order confirmation page. You can find examples on WooComerce.com. One I tried was "Share your purchase" which appends social sharing to the confirmation page.
8582

8683
### Refactor Cart and Checkout Page Templates [#10773](https://github.com/woocommerce/woocommerce-blocks/pull/10773)
8784

@@ -128,16 +125,18 @@ Before testing, take note of the frontend appearance of the cart/checkout pages.
128125

129126
### Developer testing
130127

131-
1. Go to the site editor templates section. You'll see "checkout" (your custom template) and "Page: Checkout" (the new template).
132-
2. You need to force a migration. You can manually call in Bootstrap.php the following:
128+
1. Create a fresh instance of JN with previous version of Woocommerce blocks and save some customisations to your cart/checkout page tenplates.
129+
2. Install and activate the zip file for this release.
130+
3. Go to the site editor templates section. You'll see "checkout" (your custom template) and "Page: Checkout" (the new template).
131+
4. You need to force a migration. You can manually call in Bootstrap.php the following:
133132

134133
```php
135134
$this->migration->wc_blocks_update_1120_rename_checkout_template();
136135
$this->migration->wc_blocks_update_1120_rename_cart_template();
137136
```
138137

139-
3. When you load a page it will run the above and migrate the templates. Remove the above code then go back to the site editor.
140-
4. You should now see only one "Page: Checkout" template, and it should contain the customisations you previously made to checkout.
138+
5. When you load a page it will run the above and migrate the templates. Remove the above code then go back to the site editor.
139+
6. You should now see only one "Page: Checkout" template, and it should contain the customisations you previously made to checkout.
141140

142141
### Fix: Password Protection not respected on single product template [#10999](https://github.com/woocommerce/woocommerce-blocks/pull/10999)
143142

@@ -314,22 +313,21 @@ To upload Woo Blocks ZIP file, you can either upgrade your WooExpress site or us
314313

315314

316315
1. Create a new [JN install](https://jurassic.ninja/) with both Jetpack and Woocommerce installed and activated.
317-
3. Install and activate WooCommerce Blocks from this zip file: [woocommerce-gutenberg-products-block.zip](https://github.com/woocommerce/woocommerce-blocks/files/12598602/woocommerce-gutenberg-products-block.zip)
318316

319-
5. In your wp-admin, you should see the following section for Jetpack:
317+
2. In your wp-admin, you should see the following section for Jetpack:
320318

321319
<img width="1803" alt="Screenshot 2023-09-11 at 18 55 38" src="https://github.com/woocommerce/woocommerce-blocks/assets/15730971/fc804759-f724-4fa2-829d-7bfd441962ec">
322320

323-
6. Click on "Set up Jetpack" and make sure the connection is successful:
321+
3. Click on "Set up Jetpack" and make sure the connection is successful:
324322

325323
<img width="1994" alt="Screenshot 2023-09-11 at 18 58 30" src="https://github.com/woocommerce/woocommerce-blocks/assets/15730971/661ee4c5-a0ac-40fd-9e5e-835a0e4c1cb7">
326324

327325

328-
7. Using [Postman](https://www.postman.com/) or any other equivalent app, make a POST request to the following endpoint: `wp-json/wc/store/patterns` (e.g. `https://outside-dwelling.jurassic.ninja/wp-json/wc/store/patterns`). Since you are not authenticated, you should get the following error:
326+
4. Using [Postman](https://www.postman.com/) or any other equivalent app, make a POST request to the following endpoint: `wp-json/wc/store/patterns` (e.g. `https://outside-dwelling.jurassic.ninja/wp-json/wc/store/patterns`). Since you are not authenticated, you should get the following error:
329327

330328
<img width="748" alt="Screenshot 2023-09-13 at 16 25 45" src="https://github.com/woocommerce/woocommerce-blocks/assets/15730971/fee21120-392a-4c7f-abe7-e70a3999ff32">
331329

332-
8. Now, we need to make sure the request works for admin users: you can do so by adding your credentials via Postman directly or, alternatively:
330+
5. Now, we need to make sure the request works for admin users: you can do so by adding your credentials via Postman directly or, alternatively:
333331

334332
- From your admin screen, click on Tools > Plugin editor:
335333

0 commit comments

Comments
 (0)