Add Simple-mode support to e2e tests
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 52/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- testing
Direzione di ricerca
Inizia in e2e-tests/fixtures/helpers.ts con waitForDockTabTitlesResolved, openInterlinearizerFromScriptureEditor, ensureInterlinearizerOpenOnWeb e il flusso E2E_SETTINGS_OVERRIDES. Confronta il comportamento esistente di Power-mode con Simple mode ed esamina gli screenshot degli errori CI di PR #169. Il lavoro è completato quando la copertura di Simple mode funziona senza introdurre regressioni nella copertura di Power-mode, usando gli helper esistenti per il backup e il ripristino delle impostazioni.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
The e2e suite currently only runs against Power interface mode. As of paranext-core
a77a65528a
("PT-3958: 10Simple layout styling adjustments", #2585),
Simple mode — the default (platform.interfaceMode defaults to 'simple') — hides the Home and
Editor columns' tab bars entirely (headless, pointer-events: none) and ships a Resources column
whose default tabs (Model Text, Commentaries, ...) never resolve real titles on a bare e2e profile
with no configured resources.
That broke both the strict cold-start readiness gate and the WEB-tab click flow (see PR #169 for
the CI failure screenshots). PR #169 works around it by seeding platform.interfaceMode: 'power'
into every e2e launch (E2E_SETTINGS_OVERRIDES in e2e-tests/fixtures/helpers.ts), which restores
the old visible/clickable dock-tab behavior the suite was written against. That's a stand-in, not
real coverage: the suite currently asserts nothing about how the Interlinearizer actually behaves
under Simple mode, which is the default UI real users see.
What needs to change
- Readiness gate.
waitForDockTabTitlesResolved(e2e-tests/fixtures/helpers.ts) requires
every.dock-tabto resolve a real title in strict/cold-start mode. In Simple mode this can never
be satisfied by a fresh profile, since the Resources column ships default tabs (Model Text,
Commentaries) with no backing resource configured. Simple-mode readiness needs its own definition —
e.g. only gate on the tabs the Interlinearizer flow actually touches, not every default Resources tab. - Navigation flow.
openInterlinearizerFromScriptureEditorandensureInterlinearizerOpenOnWeb
assume a visible, clickable.dock-tabfor the Scripture Editor / WEB project. In Simple mode the
Editor column's tab bar is headless and collapsed, so the existing tab-click flow can't be reused
as-is — needs a Simple-mode-aware way to confirm/focus the loaded project (the fixed column itself
may already be focused, or a different affordance needs to be used). - Home flow. The Home-button-based project-opening flow may also need adjusting: Simple mode's
Home column is a fixed, headless-tab-bar column (always present), not the closable floating tab the
current helper comments describe for a "fresh core profile." - Test matrix. Decide whether both tiers (smoke + CDP) run twice (once per interface mode) or
whether Simple-mode coverage is added more narrowly (e.g. one dedicated smoke test), given the
runtime cost of a second full Electron cold start per tier.
Constraints
- Don't regress existing Power-mode coverage — it should keep exercising the same flows it does today.
platform.interfaceModeis validated to only'simple' | 'power'
(core-settings-info.data.ts), so seeding is a simple key, not new infrastructure.- Reuse the existing settings-seed/backup mechanism (
E2E_SETTINGS_OVERRIDES,
backupAndSeedSettings/restoreBackedUpSettingsine2e-tests/fixtures/helpers.ts) rather than
building a parallel one.
- Lingua principale
- TypeScript
- Stelle
- 2
- Fork
- 0
- Merge medio
- 2g 3h
- PR unite (30g)
- 46
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di sillsdev/interlinearizer-extension
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
sillsdev/interlinearizer-extension#407 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 18/100
sillsdev/interlinearizer-extension#403 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
sillsdev/interlinearizer-extension#402 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 8/100
sillsdev/interlinearizer-extension#401 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
sillsdev/interlinearizer-extension#388 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di sillsdev/interlinearizer-extension
Issue simili
-
[Feature]: [P3] engine-rs: the package source hash should ignore line endings and untracked filesAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
maniator/verticopolis#880 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
siyuan-note/siyuan#20353 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
black-forest-labs/skills#17 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Albert-Weasker/niubigeo#168 ·
I maintainer di solito rispondono entro 1 giorno