Skip to content

Commit 7282d33

Browse files
Update test/browser/utils.tsx
Co-authored-by: Nicolas Stepien <[email protected]>
1 parent 321b3e6 commit 7282d33

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/browser/utils.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,12 @@ export function getHeaderCellsNew(...names: readonly string[]) {
4848
return names.map((name) => getHeaderCell(name));
4949
}
5050

51-
export function getRowByCellOrCellName(cell: string | Locator) {
52-
return page.getByRole('row').filter({ has: typeof cell === 'string' ? getCell(cell) : cell });
51+
export function getRowByCell(cell: Locator) {
52+
return page.getByRole('row').filter({ has: cell });
53+
}
54+
55+
export function getRowByCellName(cell: string) {
56+
return getRowByCell(getCell(cell));
5357
}
5458

5559
export function getCell(name: string) {

0 commit comments

Comments
 (0)