MCPcopy
hub / github.com/strapi/strapi / FindAndCloseOptions

Interface FindAndCloseOptions

tests/utils/shared.ts:364–368  ·  view source on GitHub ↗

* Look for an element containing text, and then click a sibling close button

Source from the content-addressed store, hash-verified

362 */
363
364interface FindAndCloseOptions {
365 role?: string;
366 closeLabel?: string;
367 required?: boolean;
368}
369
370export const findAndClose = async (page: Page, text: string, options: FindAndCloseOptions = {}) => {
371 const { role = 'status', closeLabel = 'Close', required = true } = options;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…