opton to skip visual check in cutleft

This commit is contained in:
sebastien committed 2026-09-29 15:46:47 +02:00
1 parent 5b7d4b611e
commit 2f8422f6d5
5 files changed
+112 -3

No files matched your search

+18
View File
@@ -51,6 +51,24 @@ class GuiConvenienceTests(unittest.TestCase):
start.assert_not_called()
self.assertEqual(self.app.state_store.step(step.id)["status"], "success")
def test_cutleft_visual_check_option_is_below_and_off_by_default(self):
step = self.app.step_by_id["cutleft"]
self.app.current_step = step
self.app._render_step()
labels = {
child.cget("text"): child
for child in self.app.form.winfo_children()
if isinstance(child, ttk.Label)
}
fullpage = labels["Toujours utiliser la page entière ⓘ"]
no_visual_check = labels["et ne pas vérifier visuellement ⓘ"]
self.assertGreater(
int(no_visual_check.grid_info()["row"]),
int(fullpage.grid_info()["row"]),
)
self.assertFalse(self.app.arg_vars["no_visual_check"].get())
@staticmethod
def _label_texts(widget):
return [