feat(admin): 添加用户管理相关文件

添加用户管理视图、API和状态管理文件
This commit is contained in:
张翔
2026-03-28 14:37:29 +08:00
commit 08ea5fbe98
1643 changed files with 255646 additions and 0 deletions
@@ -0,0 +1,47 @@
import { test, expect } from '@playwright/test';
import { CalendarPage } from './pages/calendar-page';
import { AlmanacPage } from './pages/almanac-page';
test.describe('数据加载测试', () => {
let calendarPage: CalendarPage;
let almanacPage: AlmanacPage;
test('TC-012: 黄历数据加载测试', async ({ page }) => {
almanacPage = new AlmanacPage(page);
await almanacPage.navigate();
await page.waitForLoadState('networkidle');
const almanacInfo = await almanacPage.getAllAlmanacInfo();
expect(almanacInfo.title).toBeTruthy();
expect(almanacInfo.dateDisplay).toBeTruthy();
expect(almanacInfo.lunarDate).toBeTruthy();
expect(almanacInfo.ganzhi).toBeTruthy();
expect(almanacInfo.shuxiang).toBeTruthy();
expect(almanacInfo.yi).toBeTruthy();
expect(almanacInfo.ji).toBeTruthy();
await almanacPage.clickNextDate();
await page.waitForLoadState('networkidle');
const nextAlmanacInfo = await almanacPage.getAllAlmanacInfo();
expect(nextAlmanacInfo.dateDisplay).not.toBe(almanacInfo.dateDisplay);
});
test('TC-013: 日历数据加载测试', async ({ page }) => {
calendarPage = new CalendarPage(page);
await calendarPage.navigate();
await page.waitForLoadState('networkidle');
const calendarTitle = await calendarPage.getCalendarTitle();
expect(calendarTitle).toBeTruthy();
await calendarPage.clickNextMonth();
await page.waitForLoadState('networkidle');
const nextMonthTitle = await calendarPage.getCalendarTitle();
expect(nextMonthTitle).not.toBe(calendarTitle);
});
});