* Look for an element containing text, and then click a sibling close button
| 362 | */ |
| 363 | |
| 364 | interface FindAndCloseOptions { |
| 365 | role?: string; |
| 366 | closeLabel?: string; |
| 367 | required?: boolean; |
| 368 | } |
| 369 | |
| 370 | export const findAndClose = async (page: Page, text: string, options: FindAndCloseOptions = {}) => { |
| 371 | const { role = 'status', closeLabel = 'Close', required = true } = options; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…