Unify shared frontend design styles
This commit is contained in:
1 parent
e14939edb9
commit
bfbf5cf39a
30 files changed
+196
-240
No files matched your search
@@ -39,3 +39,16 @@ test('public timetable stays accessible without an authenticated session', async
|
||||
await expect(page.getByRole('heading', { name: '班级课表查询' })).toBeVisible()
|
||||
await expect(page).not.toHaveURL(/\/login/)
|
||||
})
|
||||
|
||||
test.describe('public timetable empty state', () => {
|
||||
test.use({ serviceWorkers: 'block' })
|
||||
|
||||
test('explains when no classes match the available filters', async ({ page }) => {
|
||||
await page.route('**/api/timetables/options', route => route.fulfill({ json: {
|
||||
terms: [{ id: 'term-1', name: '测试学期', isCurrent: true, hasPublishedTimetable: false }],
|
||||
colleges: [], majors: [], classes: [],
|
||||
} }))
|
||||
await page.goto('/timetable')
|
||||
await expect(page.getByText('当前筛选条件下没有可查询的行政班,请调整筛选条件。')).toBeVisible()
|
||||
})
|
||||
})
|
||||
@@ -1,5 +1,8 @@
|
||||
import { expect, test } from '@playwright/test'
|
||||
|
||||
// A previously installed PWA worker can bypass the API mocks used by this test.
|
||||
test.use({ serviceWorkers: 'block' })
|
||||
|
||||
const routes: Record<string, string[]> = {
|
||||
SuperAdmin: ['/teaching-monitoring', '/campus-registrations', '/plugins', '/official-documents'],
|
||||
Teacher: ['/dashboard', '/account', '/teaching-preferences', '/my-timetable', '/teacher-roster', '/teacher-attendance', '/classroom-reservations', '/experiments', '/experiment-grades', '/grades', '/grade-analytics', '/exams', '/makeup-exams', '/course-adjustments', '/notifications', '/academic-calendar', '/approvals', '/evaluations'],
|
||||
|
||||
@@ -437,9 +437,6 @@ onUnmounted(disposeChart)
|
||||
|
||||
<style scoped>
|
||||
.performance-panel {
|
||||
--ink: #1e2932;
|
||||
--muted: #66747e;
|
||||
--line: #d8dee1;
|
||||
--paper: #f6f8f8;
|
||||
--panel: #fff;
|
||||
--signal: #1f7468;
|
||||
|
||||
Loaded 3 of 30 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user