fix(e2e): repair the e2e tests the skills unify merges made stale
After about 27 merged branches 28 e2e items failed on 9 causes: tests clicked the new voice-input mic instead of Record, the #tasks/match screen was missing from SCREENS, a test patched render on a frozen dataclass, a cleanup row had no local plan, live rows were stamped in the future, and a renamed helper shadowed self.local. The composer now keeps its mic in the action row like the agent form, so the Home radio tile shows two history rows at 960 px. 🎯 Fix: 85 % 💥 Break: 3 % 💸 Tokens: 100 % ⏱️ Velocity: 100 % 🛡️ Security: 95 % 🏆 Score: 78 🚦 Gate: ⛔ fix 85 % < 90; security 95 % < 100: ask the operator before the commit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b44cac5d37
commit
550f6962db
7 files changed
+18
-16
No files matched your search
@@ -281,7 +281,7 @@ HOME = """(async () => {@HELPERS@@PROBES@
|
||||
log: [tile("radio-log").querySelectorAll(".radio-row").length, tile("radio").querySelectorAll(".radio-row").length, document.querySelectorAll("#radio-spot .radio-row").length],
|
||||
gone: all("#main .home-tile.gone").length,
|
||||
stars: all("#main .home-tile .home-body .star").length,
|
||||
ids: all("#main .home-tile .home-body [id]").map((node) => node.id),
|
||||
ids: all("#main .home-tile .home-body [id]").map((node) => node.id).filter((id) => !id.startsWith("mic-field-")),
|
||||
};
|
||||
const count = (id) => tile(id).querySelectorAll(".radio-row").length;
|
||||
const before = [count("radio-log"), count("radio")];
|
||||
@@ -418,7 +418,7 @@ SPOT = """(async () => {@HELPERS@@PROBES@@SPEAKING@
|
||||
states.stations.closed = [fold.open, document.activeElement === summary];
|
||||
}
|
||||
if (wanted.includes("voice")) {
|
||||
const record = all("button", form).find((button) => button.hasAttribute("aria-pressed"));
|
||||
const record = all("button", form).find((button) => button.hasAttribute("aria-pressed") && !button.classList.contains("mic"));
|
||||
record.click();
|
||||
await sleep(1300);
|
||||
record.click();
|
||||
@@ -699,7 +699,7 @@ COMPOSE_HOME = """(async () => {@HELPERS@@PROBES@
|
||||
const homeSpeak = tile("radio-speak");
|
||||
const form = (root) => root.querySelector("form.composer");
|
||||
const area = (root) => form(root).querySelector("textarea");
|
||||
const record = (root) => all("button", form(root)).find((button) => button.hasAttribute("aria-pressed"));
|
||||
const record = (root) => all("button", form(root)).find((button) => button.hasAttribute("aria-pressed") && !button.classList.contains("mic"));
|
||||
const note = (root) => {
|
||||
const audio = form(root).querySelector(".voice-note audio");
|
||||
return audio ? audio.getAttribute("src").replace("/api/voice/", "").replace(".wav", "") : null;
|
||||
|
||||
Reference in new issue
Block a user