Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

test(web): 管理页头使用任务名称并隔离通知夹具

longmeidao75513153787a
diff --git a/frontend/e2e/manage-header.test.ts b/frontend/e2e/manage-header.test.ts
index 4f5287790..7d20d9612 100644
--- a/frontend/e2e/manage-header.test.ts
+++ b/frontend/e2e/manage-header.test.ts
@@ -33,7 +33,7 @@ const HEADS = [
['/sources', '来源和凭证', '来源和凭证', true],
['/trash', '回收站', '回收站', false],
['/subscriptions', '关注管理', '', false],
- ['/tasks', '活动', '', false],
+ ['/tasks', '任务中心', '', false],
['/settings/library', 'Peach 配置', '', true],
] as const;
diff --git a/frontend/e2e/toast-accent.test.ts b/frontend/e2e/toast-accent.test.ts
index 56e486a10..50235f0ee 100644
--- a/frontend/e2e/toast-accent.test.ts
+++ b/frontend/e2e/toast-accent.test.ts
@@ -9,9 +9,11 @@ describe('Toast 操作强调色',()=>{
after(async()=>{await browser.close()});
for(const viewport of VIEWPORTS)for(const theme of ['light','dark'])for(const accent of ['blue','emerald','rose']){
it(`${viewport.name} ${theme} ${accent} 撤销操作`,{timeout:60000},async()=>{
- const opened=await visit(browser,'/',viewport);
+ const opened=await visit(browser,'/follow',viewport);
try{
const page=opened.page;
+ await page.route(url=>url.pathname==='/api/library-processing',route=>route.fulfill({json:{status:'idle'}}));
+ await page.goto(new URL('/',page.url()).href,{waitUntil:'load'});
await page.evaluate(async({theme,accent})=>{
document.documentElement.dataset.theme=theme;
document.documentElement.classList.toggle('dark',theme==='dark');