From c706f1e2dfb73afe12084a1d6a5b803aee42dc88 Mon Sep 17 00:00:00 2001 From: QiuSW <105186638@qq.com> Date: Mon, 24 Aug 2026 15:21:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(#74):=20=E6=94=B6=E7=B4=A7=20SYB=20?= =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/goauto/syb-products/index.vue | 5 ++--- web/tests/e2e/syb-product-layout.spec.ts | 5 +++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/web/src/views/goauto/syb-products/index.vue b/web/src/views/goauto/syb-products/index.vue index cbb10ba..cd28506 100644 --- a/web/src/views/goauto/syb-products/index.vue +++ b/web/src/views/goauto/syb-products/index.vue @@ -25,7 +25,7 @@ - + @@ -35,7 +35,6 @@ -

本页不展示采购任务、PDD 订单号、快递单号和支付状态。

@@ -397,7 +396,7 @@ export default { .missing{color:#b91c1c} .thumb{width:44px;height:44px;border-radius:4px;object-fit:cover}.thumb.placeholder{display:flex;align-items:center;justify-content:center;background:#f1f5f9;color:#909399;font-size:11px} .link{color:#1677ff;cursor:pointer} -.scope-note{margin-top:12px;font-size:12px;color:#b91c1c} +.shopee-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .notice{margin-bottom:16px} .compact-notice{margin-bottom:12px} .dialog-form{margin-bottom:8px} diff --git a/web/tests/e2e/syb-product-layout.spec.ts b/web/tests/e2e/syb-product-layout.spec.ts index 2b97d13..df7a539 100644 --- a/web/tests/e2e/syb-product-layout.spec.ts +++ b/web/tests/e2e/syb-product-layout.spec.ts @@ -20,8 +20,12 @@ test('SYB 商品工具栏与列宽按紧凑布局显示', async({ page, context await expect(page.getByText('已选择 0 条', { exact: true })).toBeVisible() await expect(page.getByRole('button', { name: '重新解析', exact: true })).toHaveCount(0) await expect(page.getByRole('columnheader', { name: '蝦皮关联' })).toHaveCount(0) + await expect(page.getByText('本页不展示采购任务、PDD 订单号、快递单号和支付状态。', { exact: true })).toHaveCount(0) await expect(page.getByText('未关联', { exact: true }).last()).toBeVisible() await expect(page.getByText('26154802795 ↗', { exact: true })).toHaveCount(0) + const shopeeTitle = page.locator('.shopee-title').first() + await expect(shopeeTitle).toHaveAttribute('title', '用于验证加宽后的虾皮商品标题区域') + await expect(shopeeTitle).toHaveCSS('text-overflow', 'ellipsis') const importButton = await page.getByRole('button', { name: '导入', exact: true }).boundingBox() const queryButton = await page.getByRole('button', { name: '查询', exact: true }).boundingBox() @@ -42,6 +46,7 @@ test('SYB 商品工具栏与列宽按紧凑布局显示', async({ page, context await expect(page.getByRole('button', { name: '创建采购', exact: true })).toBeEnabled() const widths = await page.locator('.el-table__header-wrapper colgroup col').evaluateAll(cols => cols.map(col => Number(col.getAttribute('width')))) + expect(widths[3]).toBe(260) expect(widths[9]).toBeGreaterThanOrEqual(210) expect(widths[10]).toBe(132)