feat: 明确顺运宝复用 PDD 关联 (#183)
This commit is contained in:
@@ -247,6 +247,23 @@ func TestShopeeDetail_区分顺运宝观测与正式SKU(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestSybPage_明确展示蝦皮商品Pdd关联来源(t *testing.T) {
|
||||
list, err := os.ReadFile("templates/syb/list.html")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
detail, err := os.ReadFile("templates/syb/detail_modal.html")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
content := string(list) + string(detail)
|
||||
for _, want := range []string{".PddAssociationText", "仅在需要更换采购商品时修改下面的关联"} {
|
||||
if !strings.Contains(content, want) {
|
||||
t.Errorf("顺运宝页面缺少关联复用提示 %q", want)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestCatalogHistory_展示更新策略和分级统计(t *testing.T) {
|
||||
list, err := os.ReadFile("templates/catalog/list.html")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user