test(app): name host filter helper precisely

This commit is contained in:
Mohamed Boudra
2026-08-04 09:35:36 +02:00
parent b344a3c874
commit d8ad116b10
2 changed files with 3 additions and 3 deletions
@@ -4,7 +4,7 @@ import { gotoAppShell } from "../support/helpers/app";
import {
addOfflineHostAndReload,
expectHostFilterRow,
openSidebarDisplayPreferences,
openSidebarHostFilter,
selectAllHostsFilter,
toggleHostFilter,
} from "../support/helpers/hosts";
@@ -29,7 +29,7 @@ test.describe("Sidebar host filter (multi-select)", () => {
await addOfflineHostAndReload(page, { serverId: SECONDARY_HOST_ID, label: "Secondary Host" });
await expect(workspaceRow).toBeVisible({ timeout: 30_000 });
await openSidebarDisplayPreferences(page);
await openSidebarHostFilter(page);
await expectHostFilterRow(page, serverId);
await expectHostFilterRow(page, SECONDARY_HOST_ID);
+1 -1
View File
@@ -123,7 +123,7 @@ export async function waitForConnectedHost(
await expect(host).not.toBeVisible();
}
export async function openSidebarDisplayPreferences(page: Page): Promise<void> {
export async function openSidebarHostFilter(page: Page): Promise<void> {
await page.getByTestId("sidebar-display-preferences-menu").click();
await expect(page.getByTestId("sidebar-display-preferences-content")).toBeVisible({
timeout: 10_000,