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

Function loadBasicPage

tests/browser/e2e/devtools.tests.ts:4–22  ·  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 ' <a href="#">Link</a>',
18 '</body>',
19 '</html>',
20 ),
21 });
22}
23
24async function expectStyles(styles: StyleExpectations) {
25 await expectPageStyles(expect, styles);

Callers 1

devtools.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…