合入主线登录和营业时段策略,对齐旧界面与 React 访问流程
This commit is contained in:
commit
42395de23a
113 files changed
+1915
-558
No files matched your search
@@ -663,5 +663,13 @@ test('新纯helper资源可由隔离服务器提供,浏览器和Node构造一
|
||||
JSON.stringify(context.OrderCopy.fromOrder(original, { today: NEXT, newId: factory() })),
|
||||
JSON.stringify(Copy.fromOrder(original, { today: NEXT, newId: factory() })),
|
||||
);
|
||||
assert.ok((await (await fetch(base + '/')).text()).includes('src="/order-copy.js"'));
|
||||
const signedIn = await fetch(base + '/api/demo-login', {
|
||||
method: 'POST',
|
||||
headers: { Origin: base, 'X-Requested-With': 'maimai-ledger', 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ member: 'owner' }),
|
||||
});
|
||||
assert.equal(signedIn.status, 200);
|
||||
const cookie = signedIn.headers.get('set-cookie').split(';')[0];
|
||||
const shell = await fetch(base + '/', { headers: { Cookie: cookie } });
|
||||
assert.ok((await shell.text()).includes('src="/order-copy.js"'));
|
||||
});
|
||||
Reference in new issue
Block a user