MCPcopy Create free account
hub / github.com/gotify/server / toggleEnabled

Function toggleEnabled

ui/src/tests/plugin.test.ts:42–50  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

40 (await page.$eval(switchSelctor(id), (el) => el.getAttribute('data-enabled'))) === 'true';
41
42const 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
52const pluginInfo = async (className: string) =>
53 await innerText(page, `.plugin-info .${className} > span`);

Callers 1

plugin.test.tsFile · 0.85

Calls 2

enabledStateFunction · 0.85
switchSelctorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…