Repository navigation
Self-test: scan a populated panel for translation and contrast (#777) - #785
Conversation
The self-test's settings have no saved scenes, preview cells or sourceless slots, so the untranslated-text scan and the contrast audit never drew those screens (the selected scene row at 3.9:1 in Light was found by hand, #775). The panel now gets, in memory: four saved scenes (white, black, gradient backgrounds, and a no-op one applied as the selected row), clip slots referencing them, a white image, white and black colour slots and a slot without a source, written to the visible deck and grown to at least 3x4 (an earlier step leaves 2x2). Folds are opened in both scans; the theme step re-selects the scene after each theme pick (any change clears the highlight), counts what it scanned and fails if the selected row, four preview cells or the sourceless slot were missing. Content is restored afterwards. Verified: --smoke with an isolated profile PASS; ~3,040 texts per theme, none below threshold; the first run caught the 2x2 deck. Tests 3230. Co-authored-by: caganturgut <271973834+caganturgut@users.noreply.github.com>
|
CaYaDraft — pull request Summary Files
Note Stopping here. I will not merge, push, or change this pull request until you ask.
|
Part of #777, section 3.
The self-test's settings had no saved scenes, no clip cells with a preview and no sourceless slot. So the untranslated-text scan and the theme contrast audit never drew those screens. The selected scene row at 3.9:1 in Light (#775) was found by hand.
Change
After the i18n step opens the timeline and clip deck, the panel's own config object gets, in memory:
smoke-same, a copy of the current config, is applied as the selected row and changes nothing on screen;The slots go to the visible deck, grown to at least 3×4. The earlier clip-deck step leaves it at 2×2, and that clipped the cells on the first run.
Both scans open every fold. The theme step re-applies the selected scene after each theme pick, because any config change clears the highlight by design. It counts what it scanned and fails when the selected row, four preview cells or the sourceless slot were not drawn. Afterwards the scenes, slots, grid size and selected scene are restored. The settings file was already protected during the self-test.
Verified
--smokewith an isolated profile: PASS.dolu panel tarandı: {active: true, thumbs: 4, noref: 1}.npm test: 3230 passed. The new test pins the populated step, the folds, the coverage check and the restore.