We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 321b3e6 commit 7282d33Copy full SHA for 7282d33
test/browser/utils.tsx
@@ -48,8 +48,12 @@ export function getHeaderCellsNew(...names: readonly string[]) {
48
return names.map((name) => getHeaderCell(name));
49
}
50
51
-export function getRowByCellOrCellName(cell: string | Locator) {
52
- return page.getByRole('row').filter({ has: typeof cell === 'string' ? getCell(cell) : cell });
+export function getRowByCell(cell: Locator) {
+ return page.getByRole('row').filter({ has: cell });
53
+}
54
+
55
+export function getRowByCellName(cell: string) {
56
+ return getRowByCell(getCell(cell));
57
58
59
export function getCell(name: string) {
0 commit comments