(id: number)
| 40 | (await page.$eval(switchSelctor(id), (el) => el.getAttribute('data-enabled'))) === 'true'; |
| 41 | |
| 42 | const toggleEnabled = async (id: number) => { |
| 43 | const origEnabled = (await enabledState(id)).toString(); |
| 44 | await page.click(switchSelctor(id)); |
| 45 | await page.waitForFunction( |
| 46 | `document.querySelector("${switchSelctor( |
| 47 | id |
| 48 | )}").getAttribute("data-enabled") !== "${origEnabled}"` |
| 49 | ); |
| 50 | }; |
| 51 | |
| 52 | const pluginInfo = async (className: string) => |
| 53 | await innerText(page, `.plugin-info .${className} > span`); |
no test coverage detected
searching dependent graphs…