完善新版开单交互与移动布局,修复纸单号复制反馈

This commit is contained in:
黄健铭 committed 2026-12-04 21:52:39 -08:00
1 parent c594bf296f
commit f1a4e69f0d
20 files changed
+567 -91

No files matched your search

+5
View File
@@ -228,6 +228,11 @@ try {
await page.screenshot({ path: path.join(SHOTS, '04-desktop-filled.png'), fullPage: true });
await issue(page, '桌面', '¥2,460');
await page.screenshot({ path: path.join(SHOTS, '05-desktop-issued.png'), fullPage: true });
await page.evaluate(() => Object.defineProperty(navigator, 'clipboard', { value: undefined }));
await page.getByRole('button', { name: '复制纸单号' }).click();
await page.getByText('请手动选择纸单号复制', { exact: true }).waitFor();
if (await page.getByText(/^已复制纸单号 /).count()) fail('剪贴板不可用时仍提示复制成功');
else ok('剪贴板不可用时提示手动复制');
const [popup] = await Promise.all([
ctx.waitForEvent('page'),
page.locator('[data-action="print-preview"]').click(),