mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-02 21:06:52 +03:00
12 lines
442 B
TypeScript
12 lines
442 B
TypeScript
import type { FrigateApp } from "../fixtures/frigate-test";
|
|
|
|
// On mobile the System tabs sit in an OverflowStrip, which keeps an inert copy
|
|
// of every tab for measurement and hides the ones that do not fit behind a
|
|
// kebab. The selected tab always stays in the strip.
|
|
|
|
export function systemTab(frigateApp: FrigateApp, name: string) {
|
|
return frigateApp.page
|
|
.locator(`[aria-label="Select ${name}" i]:not([inert] *)`)
|
|
.first();
|
|
}
|