Verify merged navigation and align legacy return assertions

This commit is contained in:
鲨鱼辣椒
2026-09-30 01:05:49 +08:00
parent ae2ee5d021
commit 409cc2348f
2 changed files with 17 additions and 10 deletions

View File

@@ -355,8 +355,9 @@ test.describe('Makelore module navigation without setup flow', () => {
await expect(page.getByTestId('coding-project-starter')).toHaveCount(0);
await expect(page.getByTestId('coding-existing-projects')).toHaveCount(0);
await expect(page.getByText('一念成光,万物可创。')).toHaveCount(0);
await expect(page.getByRole('img', { name: 'Makelore logo' })).toBeVisible();
await expect(page.getByTestId('sidebar-module-switcher-trigger')).toContainText('编程 Code');
await expect(page.getByRole('img', { name: 'Makelore logo' })).toHaveCount(0);
await expect(page.getByTestId('sidebar').locator('.classroom-brand')).toBeVisible();
await expect(page.getByTestId('sidebar-module-switcher-trigger')).toHaveText('');
await expect(page.getByTestId('sidebar-module-return-icon')).toBeVisible();
await expect(page.getByTestId('sidebar-create-project')).toBeVisible();
await expect(page.getByTestId('sidebar-nav-publish')).toHaveCount(0);
@@ -377,10 +378,9 @@ test.describe('Makelore module navigation without setup flow', () => {
await expect(page.getByTestId('sidebar-module-switcher')).toBeVisible();
const moduleHomeTrigger = page.getByTestId('sidebar-module-switcher-trigger');
await expect(moduleHomeTrigger).toHaveAttribute('aria-label', '返回首页');
await expect(moduleHomeTrigger).toHaveCSS('padding-top', '8px');
await expect(moduleHomeTrigger).toHaveCSS('padding-right', '8px');
await expect(moduleHomeTrigger).toHaveCSS('padding-bottom', '8px');
await expect(moduleHomeTrigger).toHaveCSS('padding-left', '8px');
await expect(page.getByTestId('classroom-titlebar-navigation')).toBeVisible();
await expect(moduleHomeTrigger).toHaveCSS('width', '32px');
await expect(moduleHomeTrigger).toHaveCSS('height', '32px');
await expect(page.getByTestId('sidebar-module-switcher-menu')).toHaveCount(0);
await moduleHomeTrigger.click();
await expect(page).toHaveURL(/\/module-select$/);