ui: show Agents first in module chooser
This commit is contained in:
@@ -89,6 +89,10 @@ test.describe('Makelore module navigation without setup flow', () => {
|
||||
await expect(page.getByTestId('ai-module-selection-page')).toBeVisible();
|
||||
|
||||
const moduleCards = page.locator('[data-testid^="ai-module-option-"]');
|
||||
await expect(moduleCards.locator('.module-option-card-title')).toHaveText([
|
||||
'Agents 智能体', 'Code 编程', 'Canvas 设计', 'Robot 机器',
|
||||
]);
|
||||
await expect(moduleCards.first().locator('.module-option-card-description')).toHaveText('打造你想象中的AI助手');
|
||||
await expect(moduleCards.locator('img')).toHaveCount(4);
|
||||
await expect.poll(async () => await moduleCards.locator('img').evaluateAll((images) =>
|
||||
images.every((image) => image.complete && image.naturalWidth > 0),
|
||||
|
||||
Reference in New Issue
Block a user