Skip to content

Commit 96b6c64

Browse files
alswlcursoragent
andcommitted
fix(e2e): 等待 svg text 出现后再断言表名,避免 CI 时序失败
should display table names 在 CI 上因图未渲染完即断言导致 0 个 text Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent e58a921 commit 96b6c64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/e2e/er-diagram.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ test.describe('ER Diagram - Interaction', () => {
2121
});
2222

2323
test('should display table names', async ({ page }) => {
24+
// Wait for diagram to render table names (CI is slower)
2425
const tableNames = page.locator('svg text');
26+
await expect(tableNames.first()).toBeVisible({ timeout: 15000 });
27+
2528
const textCount = await tableNames.count();
2629
expect(textCount).toBeGreaterThan(0);
2730

0 commit comments

Comments
 (0)