test(e2e/ui): assert the log drawer chevrons by their lucide classes

The log details drawer moved off Ant Design in 03d2b16bc, so its section
header renders lucide ChevronUp/ChevronDown rather than antd's UpOutlined
and DownOutlined. The collapse test still waited on .anticon-up and
.anticon-down, which no longer exist anywhere under view_logs, so it
failed on every run and burned all three attempts identically.

Point the three assertions at .lucide-chevron-up and .lucide-chevron-down,
matching how the dashboard's other suites address lucide icons.
This commit is contained in:
Yuneng Jiang 2026-08-15 17:50:40 -07:00
parent ae8afec7c1
commit de2b220c36
No known key found for this signature in database

View file

@ -129,17 +129,17 @@ test.describe("Logs page", () => {
// box, so the wrapper reads as hidden while the clipped text node inside it does not.
const header = sectionHeader(drawer, "Input");
const body = header.locator("xpath=following-sibling::div[1]");
await expect(header.locator(".anticon-up")).toBeVisible();
await expect(header.locator(".lucide-chevron-up")).toBeVisible();
await expect(body).toBeVisible();
await header.click();
await expect(header.locator(".anticon-down")).toBeVisible({
await expect(header.locator(".lucide-chevron-down")).toBeVisible({
timeout: 10_000,
});
await expect(body).toBeHidden({ timeout: 10_000 });
await header.click();
await expect(header.locator(".anticon-up")).toBeVisible({
await expect(header.locator(".lucide-chevron-up")).toBeVisible({
timeout: 10_000,
});
await expect(body).toBeVisible({ timeout: 10_000 });