merge: integrate remote learning module safely
This commit is contained in:
commit
f7171a471a
125 files changed
+11451
-12132
No files matched your search
@@ -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 });
|
||||
|
||||
|
||||
Reference in new issue
Block a user