feat: 展示顺运宝观测规格 (#140)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user