Skip to content

Commit d7cb76b

Browse files
cdervclaude
andcommitted
Add Page type annotations to search tabset test helpers
Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent ae950f7 commit d7cb76b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/integration/playwright/tests/html-search-tabsets.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { test, expect } from "@playwright/test";
1+
import { test, expect, Page } from "@playwright/test";
22

33
const BASE = './html/search-tabsets/_site/index.html';
44

55
// Helper: wait for search tab activation (deferred to pageshow)
66
// and return the active pane ID for a given tab-content index.
7-
async function getActiveTabId(page, tabContentIndex: number): Promise<string> {
7+
async function getActiveTabId(page: Page, tabContentIndex: number): Promise<string> {
88
return page.evaluate((idx) => {
99
const tabContents = document.querySelectorAll('.tab-content');
1010
const tc = tabContents[idx];
@@ -15,7 +15,7 @@ async function getActiveTabId(page, tabContentIndex: number): Promise<string> {
1515
}
1616

1717
// Helper: count marks visible (not inside an inactive tab pane)
18-
async function visibleMarkCount(page): Promise<number> {
18+
async function visibleMarkCount(page: Page): Promise<number> {
1919
return page.evaluate(() => {
2020
return Array.from(document.querySelectorAll('mark')).filter(m => {
2121
let el: Element | null = m;

0 commit comments

Comments
 (0)