Re-enable the glass-element spec in valdi_test/test/JSXTest.spec.tsx

Aperta
#216 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
66/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
testing-qa

Direzione di ricerca

Start with the skipped xit in src/valdi_modules/src/valdi/valdi_test/test/JSXTest.spec.tsx, then find where the standalone test host maps glass to a view class. Check which class the platform code uses, and make the host match it or update the expectation. Run bazel test //src/valdi_modules/src/valdi/valdi_test:test. Done when the spec is it and passes.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The spec can render a glass element with children and passes glass attributes through in src/valdi_modules/src/valdi/valdi_test/test/JSXTest.spec.tsx is skipped with xit.

It renders

<glass glassStyle="clear" glassTintColor="red" interactive={true}>
  <label value="Behind glass" />
</glass>

and expects the root node's viewClass to be SCValdiGlassView, with the glass attributes passed through. The standalone test host renders <glass> as a plain SCValdiView instead, so the spec fails.

What to do: have the standalone test host map <glass> to SCValdiGlassView (or report the class the platforms actually use, and update the expectation to match). Then change xit back to it.

How to run

bazel test //src/valdi_modules/src/valdi/valdi_test:test

Done when: the spec runs as it and passes.

See CONTRIBUTING.md before opening a pull request.

Lingua principale
C++
Stelle
16.4k
Fork
538
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

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 Snapchat/Valdi

Tutte le issue di Snapchat/Valdi

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.