Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Add Simple-mode support to e2e tests

Aperta
#170 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

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-tab to 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. openInterlinearizerFromScriptureEditor and ensureInterlinearizerOpenOnWeb
    assume a visible, clickable .dock-tab for 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.interfaceMode is 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/restoreBackedUpSettings in e2e-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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sillsdev/interlinearizer-extension

Tutte le issue di sillsdev/interlinearizer-extension

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.