(locator: Locator)
| 1075 | ) |
| 1076 | |
| 1077 | def texts(locator: Locator) -> list: |
| 1078 | return locator.evaluate_all("els => els.map(e => e.textContent)") |
| 1079 | |
| 1080 | assert texts(page.get_by_role("alert", description="doc-2025")) == ["Alert 1"] |
| 1081 | assert texts(page.get_by_role("alert", description="report-2026")) == ["Alert 2"] |
no test coverage detected