def test_table(page: Page, table_app: AppHarness):
    """Test that a table component is rendered properly.

    Args:
        table_app: Harness for Table app
        page: Playwright page instance
    """
    assert table_app.frontend_url is not None, "frontend url is not available"

    page.goto(table_app.frontend_url)
    table = page.get_by_role("table")

    # Check column headers
    expect(table.get_by_role("columnheader")).to_have_count(3)
    headers = table.get_by_role("columnheader")
    for header, exp_value in zip(headers.all(), expected_col_headers, strict=True):
        expect(header).to_have_text(exp_value)

    # Check rows headers
    rows = table.get_by_role("rowheader")
    for row, expected_row in zip(rows.all(), expected_row_headers, strict=True):
        expect(row).to_have_text(expected_row)

    # Check cells
    rows = table.get_by_role("cell").all_inner_texts()
    for i, expected_row in enumerate(expected_cells_data):
        idx = i * 2
        assert [rows[idx], rows[idx + 1]] == expected_row
Test that a table component is rendered properly.

    Args:
        table_app: Harness for Table app
        page: Playwright page instance
    
tests/integration/tests_playwright/test_table.py