Skip to content

Commit

Permalink
test(mock-server): improve mocked web-page.
Browse files Browse the repository at this point in the history
  • Loading branch information
asafkorem committed Jun 18, 2024
1 parent cc8f6f2 commit b0921f9
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion detox/test/mock-server/mock-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,27 @@ class Mockserver {
});

router.get('/hello-world.html', (_, res) => {
res.send('<html><body><h1>Hello World!</h1><input type="text" aria-label="input-box"></body></html>');
res.send(`
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hello World</title>
</head>
<body>
<header>
<h1 aria-label="hello-world-heading">Hello World!</h1>
</header>
<main>
<form>
<label for="input-box" id="input-label">Your input:</label>
<input type="text" id="input-box" aria-labelledby="input-label" aria-required="true">
</form>
</main>
</body>
</html>
`);
});

router.route('/delay/:delay')
Expand Down

0 comments on commit b0921f9

Please sign in to comment.