You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## ⚪ ️ 3.9 Have one E2E smoke test that just travels across the site map
1365
+
## ⚪ ️ 3.9 Haz un test E2E que navegue toda la página (smoke test)
1366
1366
1367
-
:white_check_mark:**Haz:**For production monitoring and development-time sanity check, run a single E2E test that visits all/most of the site pages and ensures no one breaks. This type of test brings a great return on investment as it's very easy to write and maintain, but it can detect any kind of failure including functional, network and deployment issues. Other styles of smoke and sanity checking are not as reliable and exhaustive - some ops teams just ping the home page (production) or developers who run many integration tests which don't discover packaging and browser issues. Goes without saying that the smoke test doesn't replace functional tests rather just aim to serve as a quick smoke detector
1367
+
:white_check_mark:**Haz:**Para el monitoreo de producción y verificar que nada se rompe en tiempo de desarrollo (sanity check), ejecuta un único test E2E que visite todas o la mayoría de las páginas y se asegure que ninguna se rompe. Este tipo de test proporciona un gran retorno de la inversión ya que es un bastante sencillo de crear y mantener y puede detecta cualquier tipo de fallo, incluido funcionales, red y despliegue. Otras formas de hacer smoke y sanity checks no son tan confiables y exhaustivas - algunso equipos de operaciones simplemente hacen ping a la página de inicio (en producción) o desarrolladores que tiene muchos test de integración que no levanta errores de construcción o de navegador. No hace falta decir que esta prueba no sustituye los test funcionales, solo siver como detector de humo rápido.
1368
1368
1369
1369
<br/>
1370
1370
1371
-
❌ **De lo contrario:**Everything might seem perfect, all tests pass, production health-check is also positive but the Payment component had some packaging issue and only the /Payment route is not rendering
1371
+
❌ **De lo contrario:**Todo puede parecer estar bien, todos los test pasan, el health-check de produción está ok también, pero el componente de pago se construyó mal y simplemente la ruta /Payment no se renderiza
1372
1372
1373
1373
<br/>
1374
1374
1375
1375
<details><summary>✏ <b>Código de Ejemplo</b></summary>
1376
1376
1377
1377
<br/>
1378
1378
1379
-
### :clap: Ejemplo de cómo hacerlo correctamente: Smoke travelling across all pages
1379
+
### :clap: Ejemplo de cómo hacerlo correctamente: Navegando a todas las páginas
1380
1380
1381
-

1381
+

1382
1382
1383
1383
```javascript
1384
1384
it("When doing smoke testing over all page, should load them all successfully", () => {
1385
-
//exemplified using Cypress but can be implemented easily
1386
-
//using any E2E suite
1385
+
//ejemplificado con Cypress pero puede implementarse
1386
+
//facilmente usando cualquier herramienta E2E
1387
1387
cy.visit("https://mysite.com/home");
1388
1388
cy.contains("Home");
1389
1389
cy.contains("https://mysite.com/Login");
@@ -1491,7 +1491,7 @@ paths:
1491
1491
1492
1492
### :clap: Ejemplo de cómo hacerlo correctamente: Using Applitools to get snapshot comaprison and other advanced features
1493
1493
1494
-

1494
+

0 commit comments