(page: Page)
| 14 | export const MAIN_TITLE_SELECTOR = "[data-testid='main-title']"; |
| 15 | |
| 16 | export const isEditPanelVisible = async (page: Page): Promise<boolean> => |
| 17 | page.evaluate( |
| 18 | ({ attrName, panelAttr }) => { |
| 19 | const host = document.querySelector(`[${attrName}]`); |
| 20 | const shadowRoot = host?.shadowRoot; |
| 21 | if (!shadowRoot) return false; |
| 22 | return shadowRoot.querySelector(`[${panelAttr}]`) !== null; |
| 23 | }, |
| 24 | { attrName: ATTRIBUTE_NAME, panelAttr: EDIT_PANEL_ATTR }, |
| 25 | ); |
| 26 | |
| 27 | export const getVisiblePropertyKeys = async (page: Page): Promise<string[]> => |
| 28 | page.evaluate( |
no outgoing calls
no test coverage detected
searching dependent graphs…