fix(common-tools): 资料下载改挂站点 /static/ 静态位
/materials/ 是不在发布白名单里的新目录,deploy_app_web.py 只上传 index.html+assets+/static/ 清单 ⇒ 上线即 404。改走既有 /static/(nginx 已配), 发布清单在 ops 仓 deploy_app_web.py 同步登记 4 个文件。
This commit is contained in:
@@ -90,14 +90,14 @@ describe('定价利润换算页', () => {
|
||||
expect(page.findAll('.result-value')[3]?.text()).toBe('3.7500')
|
||||
})
|
||||
|
||||
it('资料下载四个锚点落在 /materials/ 且 href 无裸空格;常用链接均为 http(s)', async () => {
|
||||
it('资料下载四个锚点落在 /static/ 且 href 无裸空格;常用链接均为 http(s)', async () => {
|
||||
const page = mountPage(PricingCalcPage)
|
||||
const downloadHrefs = page
|
||||
.findAll('a[download]')
|
||||
.map((a) => a.attributes('href') ?? '')
|
||||
expect(downloadHrefs).toHaveLength(4)
|
||||
for (const href of downloadHrefs) {
|
||||
expect(href.startsWith('/materials/')).toBe(true)
|
||||
expect(href.startsWith('/static/')).toBe(true)
|
||||
expect(href.includes(' ')).toBe(false)
|
||||
}
|
||||
const linkHrefs = page
|
||||
|
||||
Reference in New Issue
Block a user