# Review procedure
Note: For the store you want to test, download Theme: Debut and keep it public.
## Test Case 1
1. Use Theme app extensions to load the file into the theme.
2. Go to the インストール方法 tab of the app.
3. Click the インストール button of "レンタルカレンダーのかんたんインストール".
Expected result: The public theme customization screen opens. Make sure the embedded app is enabled by deep link.
## Test Case 2
1. Create a product with 3 Variants.
2. Go to the レンタルプラン一覧 tab of the app.
3. Click the 新規プラン作成 button.
Expected result: A new planning modal opens.
4. Enter the following information in the new plan creation modal.
> * プラン名: test1
> * プランの説明: sample text
5. Click the 商品を選択 button.
Expected result: The product selection modal opens.
6. Select a product
Expected result: The product selection modal closes.
In the このプランに適用する商品 section
適用中: {Selected product name}
It will be displayed.
7. Rewrite the following items in the new plan creation modal.
> * 同時レンタル可能数: 5
> * 発送準備期間(日): 10
8. Enter 10 in the TextField for the レンタル日数の設定 a new plan modal and click the 新規追加 button.
Expected result: A column with 10 レンタル日数 is added below the column with 2 レンタル日数.
9. Enter 5 in the レンタル日数の設定 for the new plan creation modal and click the 新規作成 button.
Expected result: A column with 5 レンタル日数 is added above the column with 10 レンタル日数.
10. Click the 削除 button in the column for レンタル日数 2.
Expected result: The レンタル日数 2 column is removed.
11. Edit the rental days table as shown below.
> レンタル日数 are read only.
> * レンタル日数: 1, 表示名: 1 night 2 days, 価格: ¥ 1000
> * レンタル日数: 5, 表示名: 5 nights 6 days, 価格: ¥ 5000
> * レンタル日数: 10, 表示名: 10 nights 11 days, 価格: ¥ 10000
12. After entering all the items, make sure that the 保存 button is enabled.
13. Click the 保存 button.
Expected result: The new planning modal closes.
The following items will be added to the rental plan list.
プラン名: test1, 適用中の商品 / 同時レンタル可能数: {Selected products name} / 5個
14. Check the selected product on the Shopify admin.
Expected result: The product status is Draft.
Variants are the following three.
> * Title: 1 night 2 days, Price: 1,000, Quantity: N / A
> * Title: 5 night 6 days, Price: 5,000, Quantity: N / A
> * Title: 10 night 11 days, Price: 10,000, Quantity: N / A
15. Change the Status of the selected product to Active.
## Test Case 3
1. Create a new plan based on test1.
2. Go to the レンタルプラン一覧 tab of the app.
3. Click the コピー button for test1.
Expected result: A copy of test1 is created under test1.
At this time, no product is selected for the test1のコピー.
4. Click the 編集 button for test1のコピー.
Expected result: The plan edit modal opens.
5. Change the プラン名 to test2.
6. Click the 商品を選択 button.
Expected result: The product selection modal opens.
7. Select a product
Expected result: The product selection modal closes.
In the このプランに適用する商品 section
適用中: {Selected product name}
It will be displayed.
8. Rewrite the following items.
> * 同時レンタル可能数: 3
> * 発送準備期間(日): 2
9. Edit the rental days table as shown below.
> レンタル日数 are read only.
> * レンタル日数: 1, 表示名: 2 days, 価格: ¥ 2000
> * レンタル日数: 5, 表示名: 6 days, 価格: ¥ 6000
> * レンタル日数: 10, 表示名: 11 days, 価格: ¥ 11000
10. Click the 保存 button.
Expected result: The plan edit modal closes.
test2 of the rental plan list is displayed as below.
プラン名: test2, 適用中の商品 / 同時レンタル可能数: {Selected products name} / 3個
11. Check the selected product on the Shopify admin.
Expected result: The product status remains Active.
Variants are the following three.
・ Title: 2 days, Price: 2,000, Quantity: N/A
・ Title: 6 days, Price: 6,000, Quantity: N/A
・ Title: 11 days, Price: 11,000, Quantity: N/A
## Test Case 4
1. Purchase a product to which the rental plan is applied.
2. Open the product page of the product to which Plan 2 is applied.
3. Click the レンタル開始日 Field.
Expected result: The calendar opens.
4. Click the date marked with a circle on the calendar.
Expected result: The rental start date Field is filled with the date you clicked in **YYYY/mm/dd** format.
The date a day later is entered in the rental end date Field in **YYYY/mm/dd** format.
5. Click the 購入する button.
Expected result: The item is added to the cart.
6. Check out.
## Test Case 5
1. Ship and return the rental order.
2. Open the レンタルプラン一覧 tab of the app.
Expected result: The order created in Test Case 4 appears in the list.
3. Make sure that the status of the order created in Test Case 4 is "未発送".
4. Open the order management screen for the order created in Test Case 4 and fulfill it.
5. Reload the レンタル注文一覧 tab of the app.
6. Make sure that the status of the order you created in Test Case 4 is "返却待ち".
7. Click the ID of the order you created in Test Case 4.
Expected result: The order details modal opens.
8. Click the 返却確定 button in the 返却確認 section.
Expected result: The order details modal closes.
The status of the order created in Test Case 4 changes to "返却済み".
## Test Case 6
1. Cancel the rental order.
2. Perform Test Case 4 again to create a new rental order.
3. Open the レンタル注文一覧 tab of the app.
Expected result: The newly created order will appear in the list.
3. Make sure that the status of the newly created order is "未発送".
4. Click the ID of the newly created order.
Expected result: The order details modal opens.
5. Click キャンセルする in the Order Details Modal レンタル概要 section.
Expected result: The newly created order management screen opens.
6. Cancel the order.
7. Reload the レンタル注文一覧 tab of the app.
8. Confirm that the status of the newly created order is "キャンセル".