The chooser's marks are × at the left, tappable once marked
From the development repository at 5252a58. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
02b78f0856
commit
ba6791455b
5 files changed
+24
-9
No files matched your search
@@ -2188,6 +2188,15 @@ class EndToEndTest(unittest.TestCase):
|
||||
self.assertEqual(firefox.run("""
|
||||
return [...document.querySelectorAll('#chooser_pages .page_slot')].map((s) => s.classList.contains('marked'));
|
||||
""")[:3], [True, True, False])
|
||||
# A marked card is dimmed, and its mark must still be what a tap
|
||||
# at the mark's place hits, so that the second tap unmarks and
|
||||
# does not load the page (a scripted click would not tell).
|
||||
self.assertEqual(firefox.run("""
|
||||
return [...document.querySelectorAll('#chooser_pages .page_slot')].slice(0, 3).map((slot) => {
|
||||
const r = slot.querySelector('button.mark').getBoundingClientRect();
|
||||
return document.elementFromPoint(r.left + r.width / 2, r.top + r.height / 2).classList.contains('mark');
|
||||
});
|
||||
"""), [True, True, True])
|
||||
firefox.run("document.getElementById('chooser_delete').click();")
|
||||
self.assertEqual(delete(), "Press again to move 2 pages to the Trash")
|
||||
# Marking something else takes the first press back.
|
||||
|
||||
Reference in new issue
Block a user