Skip to content

update to latest test utils #397

update to latest test utils

update to latest test utils #397

GitHub Actions / React Tests succeeded Mar 23, 2024 in 1s

26 passed, 0 failed and 0 skipped

Tests passed successfully

✔️ /home/runner/work/cypress-test-utils-examples/cypress-test-utils-examples/examples/react/pokemon-catalog/cypress/results/json/merged.json

26 tests were completed in 33s with 26 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
cypress/e2e/pokemon-page.spec.cy.ts 12✔️ 3s
cypress/integration/pokemon-page.spec.cy.ts 2✔️ 572ms
src/components/pokemon-catalog/pokemon-catalog.component.spec.cy.ts 9✔️ 685ms
src/components/pokemon-image/pokemon-image.component.spec.cy.ts 3✔️ 233ms

✔️ cypress/e2e/pokemon-page.spec.cy.ts

Pokemon e2e
  ✔️ prev button should be disabled
  ✔️ should render pokemon image
  ✔️ should render pokemon index
  ✔️ should render pokemon name
Pokemon e2e when clicking next twice
  ✔️ prev button should be enabled
  ✔️ should render pokemon name
  ✔️ should update index
  ✔️ should update pokemon image
Pokemon e2e when clicking next twice when clicking prev
  ✔️ prev button should be enabled
  ✔️ should render pokemon name
  ✔️ should update index
  ✔️ should update pokemon image

✔️ cypress/integration/pokemon-page.spec.cy.ts

Pokemon Page integration Tests given a single pokemon
  ✔️ should disable next button once showing last pokemon
  ✔️ should disable prev button once showing first pokemon

✔️ src/components/pokemon-catalog/pokemon-catalog.component.spec.cy.ts

PokemonCatalogComponent Tests given one of many pokemons
  ✔️ should render pokemon count
  ✔️ should render pokemon name
  ✔️ should show picture given pokemon provided as input
PokemonCatalogComponent Tests given one of many pokemons when clicking next
  ✔️ should call getPokemon with the next pokemon's url
  ✔️ should emit onNext
PokemonCatalogComponent Tests given single pokemon
  ✔️ next button should be disabled
  ✔️ prev button should be disabled
  ✔️ should render pokemon count
  ✔️ should show picture given pokemon provided as input

✔️ src/components/pokemon-image/pokemon-image.component.spec.cy.ts

PokemonImageComponent Tests
  ✔️ given image not found should show correct fallback image
  ✔️ given image not found should show fallback image
  ✔️ given valid pokemon index should show gif