use jest-snapshot to apply the snapshot testing

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent cb3efd427f
commit 87ff591cd1
8 changed files with 172 additions and 105 deletions

View File

@@ -39,41 +39,3 @@
</script>
</html>
<!-- TEST_DIVIDER -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>form fields</title>
</head>
<body>
<form>
<label for="text">
<input type="text" value="1">
</label>
<label for="radio">
<input type="radio" checked="">
</label>
<label for="checkbox">
<input type="checkbox" checked="">
</label>
<label for="textarea">
<textarea name="" id="" cols="30" rows="10">1234</textarea>
</label>
<label for="select">
<select name="" id="" value="2">
<option value="1">1</option>
<option value="2" selected>2</option>
</select>
</label>
</form>
</body>
<noscript></noscript>
</html>

View File

@@ -1,9 +1,3 @@
<html foo='bar' ''>
</html>
<!-- TEST_DIVIDER -->
<html foo='bar'>
</html>

View File

@@ -16,22 +16,3 @@
</body>
</html>
<!-- TEST_DIVIDER -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>with script</title>
</head>
<body>
<noscript src="/js/a.js"></noscript>
<noscript></noscript>
</body>
</html>

View File

@@ -14,22 +14,3 @@
</body>
</html>
<!-- TEST_DIVIDER -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>with style sheet</title>
<style>body { margin: 0px; }p { color: red; }body > p { color: yellow; }</style>
</head>
<body>
</body>
</html>