fix(hub): follow the Yes/No ask dialog in the 390 options and e2e
aa4a337 turned an ask into a decision dialog whose Yes option stays
enabled after a pick. The bulk grant probe now picks an ask by its Yes
option, and the inbox probe counts choice cards on decision rows only.
.options gets a minmax(0, 1fr) column, so the ask options shrink inside
the card at 390 instead of running past it.
🎯 Fix: 88 %
💥 Break: 3 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 85
🚦 Gate: ⛔ fix 88 % < 90
Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c7320961f4
commit
c412d76b25
3 files changed
+4
-4
No files matched your search
@@ -33,7 +33,7 @@ COMMON = """
|
||||
await until(() => menu().open, 2000);
|
||||
await sleep(100);
|
||||
};
|
||||
const grantOf = (ref) => row(ref) && row(ref).querySelector(".item-actions button.primary");
|
||||
const grantOf = (ref) => row(ref) && (row(ref).querySelector(".item-actions button.primary") || all(".options.dialog > button.option", row(ref)).find((button) => text(button.querySelector("strong")) === "Yes"));
|
||||
const wide = () => document.documentElement.scrollWidth > innerWidth + 1;
|
||||
const switchState = () => [name(main()), count(), document.querySelector("#grant-bar #grant-direct") ? "select" : "direct"];
|
||||
const storedMode = async (mode) => {
|
||||
@@ -250,7 +250,7 @@ class TestBulkGrant(base.OrchestratorE2ECase):
|
||||
self.assertEqual(collect["restored"], selecting, collect)
|
||||
self.assertEqual(collect["pale"], [True, True], collect)
|
||||
self.assertEqual(collect["counts"], ["1 selected", "2 selected", "1 selected", "2 selected", "3 selected"], collect)
|
||||
self.assertEqual((collect["pressed"], collect["posted"]), ([["true", True]] * 3, []), collect)
|
||||
self.assertEqual((collect["pressed"], collect["posted"]), ([["true", True], ["true", False], ["true", True]], []), collect)
|
||||
self.assertEqual((collect["labels"][0], collect["labels"][-1]), ("Grant selection (3)", "Direct"), collect)
|
||||
self.assertEqual(sum(label.startswith("Remove ") for label in collect["labels"]), 3, collect)
|
||||
self.assertEqual((sheet["label"], len(sheet["listed"])), ("Grant 3", 3), sheet)
|
||||
|
||||
Reference in new issue
Block a user