Project

General

Profile

Actions

Feature #6695

open

Feature #6693: [Test Suite] Coffee Cart 網站全功能驗收測試案例

[TC-02] 單品加入購物車 - 驗證單擊加入、計數遞增與金額顯示

Feature #6695: [TC-02] 單品加入購物車 - 驗證單擊加入、計數遞增與金額顯示

Added by Aiden cwc 3 days ago. Updated 3 days ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
核心功能
Start date:
09/21/2026
Due date:
% Done:

100%

Estimated time:
0:18 h

Description

測試目的 (Objective)

驗證使用者在菜單首頁點選單一咖啡品項時,商品能即時成功加入購物車,且頁面頂部計數與右下角結帳總金額正確同步。

前置條件 (Preconditions)

  1. 開啟受測網站:Coffee cart
  2. 購物車狀態為空,初始顯示為 cart (0)Total: $0.00

測試步驟 (Test Steps)

  1. 在菜單首頁找到「Espresso」品項卡片(標價 $10.00)。
  2. 單擊該卡片或咖啡杯圖示 1 次。
  3. 觀察頂部導覽列的購物車狀態。
  4. 觀察右下角結帳預覽區的總金額變化。
  5. 點擊頂部導覽列的 cart (1) 進入 購物車頁面

預期結果 (Expected Results)

  1. 步驟 2:點擊時卡片具有視覺點擊反饋。
  2. 步驟 3:頂部導覽列文字由 cart (0) 即時更新為 cart (1)
  3. 步驟 4:右下角按鈕文字即時更新為 Total: $10.00
  4. 步驟 5:進入購物車頁面後,列表正確列出 Espresso,數量為 1,單價與小計皆為 $10.00
  5. DevTools Console 無任何警告或未捕獲之例外錯誤。
Actions

Also available in: PDF Atom