Skip to content

Commit f2f59e4

Browse files
refactor: rename specs (#30)
Now compatible with: * lighthouse v10 * playwright-lighthouse v3.1 * TypeScript v5.1 * Node v18 * Faker v8 Upgrade GitHub Actions * actions/upload-artifact@v3 * mikepenz/action-junit-report@v3 * actions/checkout@v3 * actions/setup-node@v3
1 parent 98c37bd commit f2f59e4

8 files changed

+19
-14
lines changed

LEEME.md

+12-10
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
Podrás acceder a mi canal de [YouTube](https://www.youtube.com/c/CharlyAutomatiza?sub_confirmation=1) para mayor información sobre este y otros frameworks de pruebas automatizadas.
1515

16+
[![Playwright Tests](https://github.com/charlyautomatiza/starter-playwright/actions/workflows/playwright.yml/badge.svg)](https://github.com/charlyautomatiza/starter-playwright/actions/workflows/playwright.yml)
17+
1618
### Requerimientos generales
1719

1820
- Instalar [Node.js](https://nodejs.org/es/download/)
@@ -72,19 +74,19 @@ Example .env:
7274

7375
**IMPORTANTE**:
7476

75-
En la sección `thresholds` del archivo [lighthouse.spec.ts](./tests/lighthouse.spec.ts) se puede configurar el nivel de aceptación de los test de `accessibility`, `performance`, `SEO`, `best-practices`, `pwa` respectivamente.
77+
En la sección `thresholds` del archivo [a11y.lighthouse.spec.ts](./tests/a11y.lighthouse.spec.ts) se puede configurar el nivel de aceptación de los test de `accessibility`, `performance`, `SEO`, `best-practices`, `pwa` respectivamente.
7678

7779
Si nuestro umbral es de 100 para `accessibility`, nuestro test debe tener una aceptación de 100% para que se considere exitoso.
7880

79-
```typescript
80-
thresholds: {
81-
performance: 50,
82-
accessibility: 100,
83-
'best-practices': 50,
84-
seo: 50,
85-
pwa: 0,
86-
},
87-
```
81+
```typescript
82+
thresholds: {
83+
performance: 50,
84+
accessibility: 100,
85+
'best-practices': 50,
86+
seo: 50,
87+
pwa: 0,
88+
},
89+
```
8890

8991
#### **Para abrir el reporte Html de Playwright unificado de los resultados de los test**
9092

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<a href="https://www.youtube.com/c/CharlyAutomatiza?sub_confirmation=1"><img src="https://img.shields.io/badge/CharlyAutomatiza-Youtube-FF0000.svg" style="max-height: 300px;" style="max-height: 300px;"></a>
66
<a href="https://www.linkedin.com/in/gautocarlos/"><img src="https://img.shields.io/badge/Carlos%20 Gauto-LinkedIn-0077B5.svg" style="max-height: 300px;" style="max-height: 300px;"></a>
77
</p>
8+
89
<h1 dir="auto"><a class="anchor" aria-hidden="true" href="https://playwright.dev/"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd"></path></svg></a><g-emoji class="g-emoji" alias="performing_arts" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f3ad.png">🎭</g-emoji> Playwright</h1>
910

1011
# Web Test Automation - Playwright
@@ -13,6 +14,8 @@
1314

1415
You can access my [YouTube](https://www.youtube.com/c/CharlyAutomatiza?sub_confirmation=1) channel for more information about this and other automated testing frameworks.
1516

17+
[![Playwright Tests](https://github.com/charlyautomatiza/starter-playwright/actions/workflows/playwright.yml/badge.svg)](https://github.com/charlyautomatiza/starter-playwright/actions/workflows/playwright.yml)
18+
1619
### Overview
1720

1821
Esta documentación está disponible también en [**Castellano**](LEEME.md).
@@ -79,7 +82,7 @@ Example .env:
7982

8083
**IMPORTANT**:
8184

82-
In the `thresholds` section of the [lighthouse.spec.ts](./tests/lighthouse.spec.ts) file, you can configure the acceptance level of the `accessibility`, `performance`, `SEO`, `best-practices`, `pwa` respectively.
85+
In the `thresholds` section of the [a11y.lighthouse.spec.ts](./tests/a11y.lighthouse.spec.ts) file, you can configure the acceptance level of the `accessibility`, `performance`, `SEO`, `best-practices`, `pwa` respectively.
8386

8487
If our threshold is 100 for `accessibility`, our test must have 100% acceptance to be considered successful.
8588

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
"main": "index.js",
77
"scripts": {
88
"clean": "rimraf allure-results && rimraf allure-report && rimraf test-results && rimraf playwright-report && rimraf junit-results && rimraf lighthouse",
9-
"api-example": "npx playwright test tests/api.example.spec.ts --project=chromium",
10-
"data-mgmt": "npx playwright test tests/dataAPIExample.spec.ts --project=chromium",
9+
"api-example": "npx playwright test tests/api.basic.example.spec.ts --project=chromium",
10+
"data-mgmt": "npx playwright test tests/api.data.example.spec.ts --project=chromium",
1111
"api-ui": "npm run clean && npx playwright test tests/api.ui.spec.ts --project=chromium",
1212
"play-report": "npx playwright show-report",
1313
"allure-report": "allure generate ./allure-results --clean",
1414
"open-report": "npm run allure-report && allure open ./allure-report",
1515
"firefox": "npm run clean && npx playwright test --project=firefox",
1616
"chromium": "npx playwright test --project=chromium",
17-
"a11y": "npm run clean && npx playwright test tests/lighthouse.spec.ts --project=chromium",
17+
"a11y": "npm run clean && npx playwright test tests/a11y.lighthouse.spec.ts --project=chromium",
1818
"webkit": "npx playwright test --project=webkit",
1919
"test": "npm run clean && npx playwright test --project=chromium",
2020
"test-head": "npm run clean && npx playwright test --headed",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)