等员工列表更新完成后验证店铺保存并固定运行起始版本

This commit is contained in:
黄健铭 committed 2026-12-05 02:34:07 -08:00
1 parent 7d2007955f
commit 340100ce6c
2 files changed
+10 -3

No files matched your search

+7 -1
View File
@@ -49,11 +49,17 @@ export default async function settings(ctx) {
await form.locator('[name=verified]').check();
await write(ctx, owner, title + '员工', endpoint + verb, () => submit(form));
}
// 旧界面先关闭员工弹窗,再更新店铺表单并重载员工列表。
await row.waitFor({ state: 'detached' });
await owner.locator('[data-employee="owner"]').waitFor();
const shop = owner.locator('#shop-settings-form'),
print = owner.locator('#print-settings');
await fill(shop, { storeName: '迁移对照店铺' });
await fill(print, { rows: '8' });
await write(ctx, owner, '保存店铺名称', '/api/shop-settings', () => submit(shop));
await write(ctx, owner, '保存店铺名称', '/api/shop-settings', async () => {
assert.equal(await shop.locator('[name=storeName]').inputValue(), '迁移对照店铺');
await submit(shop);
});
assert.equal(await print.locator('[name=rows]').inputValue(), '8');
await write(ctx, owner, '保存打印设置', '/api/printing', () => owner.locator('button[form=print-settings]').click());
await ctx.step('备份并下载完整账本', async () => {