feat: redesign bottom navigation with day-picker styling

- Add a compact sky-blue rounded navigation group based on the day picker geometry.
- Use coral for the selected destination and the separate global add button.
- Add a functional global Add Class action that works from every tab.
- Cover the global navigation action with Playwright.
This commit is contained in:
2026-09-05 10:27:35 +05:30
parent 829b3234e5
commit b0bdfd2ca5
5 changed files with 186 additions and 51 deletions

View File

@@ -25,7 +25,7 @@ test.describe('College Kit E2E & Visual Verification', () => {
await page.goto('/');
// Navigate to Timetable
await page.locator('text=Timetable').click();
await page.getByRole('button', { name: 'Timetable' }).click();
await expect(page.locator('text=Week of')).toBeVisible();
// Navigate to Attendance
@@ -43,6 +43,16 @@ test.describe('College Kit E2E & Visual Verification', () => {
await expect(page.locator('text=classes').first()).toBeVisible();
});
test('Global plus action opens Add Class from another tab', async ({ page }) => {
await page.goto('/attendance');
await expect(page.locator('text=By subject')).toBeVisible();
await page.getByRole('button', { name: 'Add a class' }).click();
await expect(page.locator('text=Add a class').first()).toBeVisible();
await expect(page.locator('text=One-off class for')).toBeVisible();
});
test('Account screen displays profile information correctly', async ({ page }) => {
await page.goto('/account');
await expect(page.locator('text=Sam Taylor')).toBeVisible();