fix(web): restore bot card spacing

This commit is contained in:
RockChinQ
2026-08-25 21:21:36 +08:00
parent 68620c4572
commit ad6b8b3209
2 changed files with 15 additions and 1 deletions
+14
View File
@@ -360,6 +360,20 @@ test.describe('bot advanced flows', () => {
page.getByText('Events that match no route are ignored.'),
).toHaveCount(0);
const routingCard = page
.locator('[data-slot="card"]')
.filter({ has: page.getByText('Event Routing', { exact: true }) });
const dangerCard = page
.locator('[data-slot="card"]')
.filter({ has: page.getByText('Danger Zone', { exact: true }) });
const routingBox = await routingCard.boundingBox();
const dangerBox = await dangerCard.boundingBox();
expect(routingBox).not.toBeNull();
expect(dangerBox).not.toBeNull();
expect(
dangerBox!.y - (routingBox!.y + routingBox!.height),
).toBeGreaterThanOrEqual(20);
await page.getByRole('button', { name: 'Refresh status' }).hover();
await expect(
page.getByText('Failed to refresh route status.'),