merge: integrate remote learning module safely
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
brother7 committed 2026-08-17 01:05:49 +08:00
commit f7171a471a
125 files changed
+11451 -12132

No files matched your search

+24
View File
@@ -149,6 +149,30 @@ test.describe('Makelore module navigation without setup flow', () => {
}
});
test('opens Learning from the module chooser and returns through the module switcher', async ({ launchElectronApp }) => {
const app = await launchElectronApp({ skipSetup: true });
try {
const page = await getStableWindow(app);
await expect(page.getByTestId('ai-module-selection-page')).toBeVisible();
const learningOption = page.getByTestId('ai-module-option-learning');
await expect(learningOption).toBeVisible();
await expect(learningOption).toBeEnabled();
await learningOption.click();
await expect(page).toHaveURL(/\/learning$/);
await expect(page.getByTestId('learning-home')).toBeVisible();
await expect(page.getByRole('heading', { name: '课程广场' })).toBeVisible();
await page.getByTestId('sidebar-module-switcher-trigger').click();
await expect(page).toHaveURL(/\/module-select$/);
await expect(page.getByTestId('ai-module-selection-page')).toBeVisible();
} finally {
await closeElectronApp(app);
}
});
test('returns to the module chooser from the sidebar entry', async ({ launchElectronApp }) => {
const app = await launchElectronApp({ skipSetup: true });