test: cover country-specific sections
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- playwright, typescript, vite
Direzione di ricerca
Read specs/add-e2e/spec.md sections 2.6 and 6.7, then inspect e2e/specs/usecases/country-default.spec.ts and e2e/specs/usecases/country-italy.spec.ts plus the Playwright project configuration. Cover the listed default and import/reset behaviors, including uppercase IT in generated YAML. The countrySpecific=none expectation depends on a maintainer decision about B5, so confirm that decision before finalizing the test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Context
Sub-task T8 of #655. See specs/add-e2e/spec.md §6.7, and §2.6: VITE_DEFAULT_COUNTRY_SECTIONS is read at build time, while ?countrySpecific= is read at runtime and only accepts all and italy.
Scope
e2e/specs/usecases/country-default.spec.ts (project default) and e2e/specs/usecases/country-italy.spec.ts (project country-italy, built with VITE_DEFAULT_COUNTRY_SECTIONS=italy into dist-italy).
default project (none)
- No Italy section by default.
?countrySpecific=italyand?countrySpecific=allshow it.- Importing a file with an
ITsection:- the Italy section appears;
- the query param becomes
countrySpecific=italy; - the output YAML has uppercase
IT, because the file's version is 0.5 or later.
- Reset (
toolbar-reset→reset-confirm-submit): the section disappears and the query param is removed.
country-italy project
- The Italy section is visible by default.
?countrySpecific=nonecurrently does not hide it (B5). Depending on the decision below, this is eithertest.fail()linked to the B5 issue, or an assertion that documents the current behaviour.
Open decision
Is ?countrySpecific=none being ignored when the build default is italy a bug (B5)? Owner: product / maintainers. If yes, open the B5 issue before merging so test.fail() can link to it.
Acceptance criteria
- Both projects pass in CI;
country-italy*specs run only in thecountry-italyproject - Query param sync is covered on import and on reset
- Uppercase
ITis checked in the generated YAML - The B5 behaviour is covered according to the decision (
test.fail()+ issue link, or a documenting assertion)
Related
- Parent: #655
- Depends on: #682, #683
- Linked bug: B5 (to be opened if judged a bug)
- Lingua principale
- TypeScript
- Stelle
- 33
- Fork
- 34
- Merge medio
- 10h 50m
- PR unite (30g)
- 13
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
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 italia/publiccode-editor
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
italia/publiccode-editor#509 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
italia/publiccode-editor#702 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 75/100
italia/publiccode-editor#691 ·
I maintainer di solito rispondono entro 1 giorno
-
Support to publiccode v0.8.0Apertaenhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
italia/publiccode-editor#666 ·
I maintainer di solito rispondono entro 1 giorno
-
Add end-to-end test coverageForse già presa @valeriocomo l’ha presa 3 giorni fa. Apertaenhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
italia/publiccode-editor#655 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di italia/publiccode-editor
Issue simili
-
prio:low scope:hud
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
OliverRomhagen/vrigstad-joyride#953 ·
I maintainer di solito rispondono entro 1 giorno
-
review-followup
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
griffinwork40/agent-afk#5446 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
kacper-szewczyk/Ticknest#346 ·
I maintainer di solito rispondono entro 1 giorno
-
echarts geo: a GeoJSON URL that returns 200 with a body that is not JSON is fetched on each refreshApertabug plugin/echarts/geo
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
Yeachan-Heo/gajae-code#8230 ·
I maintainer di solito rispondono entro 1 giorno