test: cover helpers, job queue and chatgpt.com DOM fixtures

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Opus 5.5 committed 2026-10-07 17:09:51 +02:00
1 parent 5a6bc4aeb9
commit 981dc3b941
6 files changed
+750

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
<!doctype html>
<html><head><meta charset="utf-8"><title>ChatGPT (new chat)</title></head>
<body>
<nav aria-label="Chat history"></nav>
<button data-testid="profile-button">Me</button>
<main>
<div id="thread"></div>
<div id="prompt-textarea" contenteditable="true"></div>
<button data-testid="send-button" id="send">Send</button>
<input type="file" accept="image/*" multiple style="display:none" id="files">
<div id="previews"></div>
</main>
<script>
document.getElementById("send").addEventListener("click", () => {
const composer = document.getElementById("prompt-textarea");
const turn = document.createElement("div");
turn.setAttribute("data-message-author-role", "user");
turn.className = "user-turn";
turn.textContent = composer.innerText;
document.getElementById("thread").appendChild(turn);
composer.textContent = "";
});
document.getElementById("files").addEventListener("change", (event) => {
for (const file of event.target.files) {
const preview = document.createElement("div");
preview.className = "preview";
preview.textContent = file.name + ":" + file.type + ":" + file.size;
document.getElementById("previews").appendChild(preview);
}
});
</script>
</body></html>