Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
This commit is contained in:
@@ -49,7 +49,7 @@ test('the shared button stylesheet is served and every page links it', async (t)
|
||||
assert.equal(css.status, 200);
|
||||
assert.match(css.headers.get('content-type'), /^text\/css/);
|
||||
assert.match(await css.text(), /prefers-reduced-motion/);
|
||||
for (const file of ['index.html', 'my.html', 'permissions.html', 'archive.html']) {
|
||||
for (const file of ['index.html', 'my.html', 'archive.html']) {
|
||||
assert.match(await readFile(file, 'utf8'), /<link rel="stylesheet" href="\/buttons\.css">/, file);
|
||||
}
|
||||
});
|
||||
@@ -442,7 +442,10 @@ test('login flow: any company account gets in; only the top admin reaches the bo
|
||||
const admin = await signIn(base, provider);
|
||||
assert.equal(admin.callback.headers.get('location'), '/');
|
||||
assert.equal((await fetch(`${base}/`, { headers: { cookie: admin.cookie }, redirect: 'manual' })).status, 200);
|
||||
assert.equal((await fetch(`${base}/permissions`, { headers: { cookie: admin.cookie }, redirect: 'manual' })).status, 200);
|
||||
// 權限管理搬進主看板後,舊網址導回看板並直接打開那個區塊。
|
||||
const permRedirect = await fetch(`${base}/permissions`, { headers: { cookie: admin.cookie }, redirect: 'manual' });
|
||||
assert.equal(permRedirect.status, 302);
|
||||
assert.equal(permRedirect.headers.get('location'), '/?view=permissions');
|
||||
|
||||
// 部署重新啟動:兩個人都不用重新登入;檔案裡沒有 cookie 原始值。
|
||||
child.kill('SIGTERM');
|
||||
|
||||
Reference in New Issue
Block a user