feat: 展示顺运宝观测规格 (#140)

This commit is contained in:
chengma
2026-08-11 10:46:11 +08:00
parent 9181329917
commit c05c4fafdb
8 changed files with 199 additions and 3 deletions
+13
View File
@@ -138,6 +138,19 @@ func TestShopeePage_移除Excel入口且保留目录记录入口(t *testing.T) {
}
}
func TestShopeeDetail_区分顺运宝观测与正式SKU(t *testing.T) {
content, err := os.ReadFile("templates/shopee/detail_modal.html")
if err != nil {
t.Fatal(err)
}
page := string(content)
for _, want := range []string{"顺运宝观测规格", "不是正式蝦皮 SKU", "最近货运单售价(台币)", "{{.MatchText}}"} {
if !strings.Contains(page, want) {
t.Errorf("蝦皮详情缺少 %q", want)
}
}
}
func TestShopeeImportRoute_已移除(t *testing.T) {
router, err := newRouter(nil)
if err != nil {