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

Abierto
#216 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
66/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript
Área
testing-qa

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C++
Estrellas
16.4k
Forks
538
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Snapchat/Valdi

Todos los issues de Snapchat/Valdi

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.