MCPcopy Index your code
hub / github.com/darkreader/darkreader / loadBasicPage

Function loadBasicPage

tests/browser/e2e/environment.tests.ts:3–21  ·  view source on GitHub ↗
(header = 'E2E test page')

Source from the content-addressed store, hash-verified

1import {multiline} from '../../support/test-utils';
2
3async function loadBasicPage(header = 'E2E test page') {
4 await loadTestPage({
5 '/': multiline(
6 '<!DOCTYPE html>',
7 '<html>',
8 '<head>',
9 ' <style>',
10 ' h1 { color: red; }',
11 ' </style>',
12 '</head>',
13 '<body>',
14 ` <h1>${header}</h1>`,
15 ' <p>Text</p>',
16 ' <a href="#">Link</a>',
17 '</body>',
18 '</html>',
19 ),
20 });
21}
22
23describe('Test environment', () => {
24 it('should turn On/Off', async () => {

Callers 1

Calls 1

multilineFunction · 0.90

Tested by

no test coverage detected