MCPcopy Create free account
hub / github.com/darkreader/darkreader / loadBasicPage

Function loadBasicPage

tests/browser/e2e/fixes.tests.ts:4–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import type {StyleExpectations} from '../globals';
3
4async function loadBasicPage() {
5 await loadTestPage({
6 '/': multiline(
7 '<!DOCTYPE html>',
8 '<html>',
9 '<head>',
10 ' <style>',
11 ' h1 { color: red; }',
12 ' </style>',
13 '</head>',
14 '<body>',
15 ' <h1>E2E test page</h1>',
16 ' <p>Text</p>',
17 '</body>',
18 '</html>',
19 ),
20 });
21}
22
23async function expectStyles(styles: StyleExpectations) {
24 await expectPageStyles(expect, styles);

Callers 1

fixes.tests.tsFile · 0.70

Calls 1

multilineFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…