MCPcopy
hub / github.com/darkreader/darkreader / loadBasicPage

Function loadBasicPage

tests/browser/e2e/toggle.tests.ts:8–26  ·  view source on GitHub ↗
(header: string)

Source from the content-addressed store, hash-verified

6}
7
8async function loadBasicPage(header: string) {
9 await loadTestPage({
10 '/': multiline(
11 '<!DOCTYPE html>',
12 '<html>',
13 '<head>',
14 ' <style>',
15 ' h1 { color: red; }',
16 ' </style>',
17 '</head>',
18 '<body>',
19 ` <h1>${header}</h1>`,
20 ' <p>Text</p>',
21 ' <a href="#">Link</a>',
22 '</body>',
23 '</html>',
24 ),
25 });
26}
27
28describe('Toggling the extension', () => {
29 const automationMenuSelector = '.header__more-settings-button';

Callers 1

toggle.tests.tsFile · 0.70

Calls 1

multilineFunction · 0.90

Tested by

no test coverage detected