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

Function hasReceivedMessage

ui/src/tests/plugin.test.ts:57–67  ·  view source on GitHub ↗
(title: RegExp, content: RegExp)

Source from the content-addressed store, hash-verified

55const getDisplayer = async () => await innerText(page, '.displayer');
56
57const hasReceivedMessage = async (title: RegExp, content: RegExp) => {
58 await page.click('#message-navigation a');
59 await waitForExists(page, selector.heading(), 'All Messages');
60 await waitForCount(page, '#messages .message', 1);
61
62 expect(await innerText(page, '.title')).toMatch(title);
63 expect(await innerText(page, '.content')).toMatch(content);
64
65 await page.click('#navigate-plugins');
66 await waitForExists(page, selector.heading(), 'Plugins');
67};
68
69const inDetailPage = async (id: number, callback: () => Promise<void>) => {
70 const name = await innerText(page, $table.cell(id, Col.Name));

Callers 1

plugin.test.tsFile · 0.85

Calls 3

waitForExistsFunction · 0.90
waitForCountFunction · 0.90
innerTextFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…