https://github.com/upex-galaxy/upex-playwright-swaglabs
Official Playwright Project for Swaglabs
https://github.com/upex-galaxy/upex-playwright-swaglabs
Last synced: 7 months ago
JSON representation
Official Playwright Project for Swaglabs
- Host: GitHub
- URL: https://github.com/upex-galaxy/upex-playwright-swaglabs
- Owner: upex-galaxy
- License: mit
- Created: 2024-04-18T16:41:38.000Z (over 1 year ago)
- Default Branch: QA
- Last Pushed: 2024-08-23T17:22:41.000Z (about 1 year ago)
- Last Synced: 2025-01-04T13:48:19.399Z (9 months ago)
- Language: TypeScript
- Size: 1.09 MB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://github.com/upex-galaxy/playwright-typescript-gx/actions/workflows/regression.yml)
[![vscode-logo]][vscode-site] [![playwright-logo]][playwright-site] [![javascript-logo]][javascript-site] [![typescript-logo]][typescript-site]
🧪QA Automation: 🎭Playwright TypeScript📘
![]()
🧪PLAYPEX🧪
APRENDE Y GANA EXPERIENCIA TRABAJANDO EN UPEX GALAXY
PLAYWRIGHT AL GRANO »
Getting Started Docs »
# 🧪Framework: Playwright🎭
## 🏹ORGANIZACIÓN Y ESTRUCTURA DE PROYECTO
Ahora el Directorio de UPEX Galaxy, será mucho más simple.
# CÓMO EMPEZAR:
**Precondición**:
- Asegúrate de usar el Gestor de Paquete "YARN" en este proyecto en lugar de npm; para un mejor rendimiento de control de dependencias.
- Si aún no tienes instalado `yarn` en tu maquina, puedes hacerlo simplemente corriendo en la terminal: `npm i -g yarn`1. **📡 Clona el Repositorio del Proyecto**:
```
git clone https://github.com/upex-galaxy/playwright-typescript-gx.git
```
2. **❗💿 Instala todas las Dependencias del Proyecto**:
```
yarn
```
3. **❗💿 Instala Playwrgiht🎭️ y los Navegadores todas sus Dependencias usando Yarn**:
```
yarn pw:install
```
- este script de yarn `pw:install` ejecuta => "npx playwright install --with-deps chromium firefox msedge"
- si estás usando un sistema operativo no soportado por Playwright, necesitarás realizar la instalación con la Extensión.4. **🧪 Corre toda la Regresión de Pruebas para Verificar**:
```
yarn regression
```
5. **📊 Puedes Generar siempre un Reporte de Pruebas con Allure**:
```
yarn allure
```
6. **❗ Recuerda ACTUALIZAR tu Repo todos los días con**:```
primero corre:
git fetch origin QA(opcional) para revisar los nuevos cambios entrantes:
git diff origin/QAy luego para actualizar tu local branch:
git merge origin/QA
```---
# Command Lines para Playwright:
Opciones comunes disponibles en la línea de comando:
- ### Ejecutar todas las pruebas
`npx playwright test`
- ### Ejecutar un solo archivo de prueba
`npx playwright test tests/todo-page.spec.ts`
- ### Ejecutar un conjunto de archivos de prueba
`npx playwright test tests/todo-page/ tests/landing-page/`
- ### Ejecutar archivos que tengan my-spec o my-spec-2 en el nombre del archivo
`npx playwright test my-spec my-spec-2`
- ### Ejecutar pruebas en la línea 42 de my-spec.ts
`npx playwright test my-spec.ts:42`
- ### Ejecutar la prueba con el título
`npx playwright test -g "add a todo item"`
- ### Ejecutar pruebas en navegadores con cabecera
`npx playwright test --headed`
- ### Ejecutar todas las pruebas contra un proyecto específico
`npx playwright test --project=chromium`
- ### Desactivar la paralelización
`npx playwright test --workers=1`
- ### Elija un informador
`npx playwright test --reporter=dot`
- ### Ejecutar en modo de depuración con el inspector de Playwright
`npx playwright test --debug`
- ### Pida ayuda
`npx playwright test --help`## TUTORIAL COMPLETO PASO A PASO CREACIÓN DE PROYECTO:
### LEE ESTA GUÍA: [PLAYWRIGHT AL GRANO](https://upexgalaxy9.atlassian.net/wiki/spaces/UG/pages/1083226)
[vscode-logo]: https://img.shields.io/badge/VSCode-black?logo=visualstudiocode&style=for-the-badge
[vscode-site]: https://code.visualstudio.com/
[playwright-logo]: https://img.shields.io/badge/Playwright-black?logo=playwright&style=for-the-badge
[playwright-site]: https://playwright.dev/docs/writing-tests
[javascript-logo]: https://img.shields.io/badge/JavaScript-black?logo=javascript&style=for-the-badge
[javascript-site]: https://www.javascript.com/
[typescript-logo]: https://img.shields.io/badge/TypeScript-black?logo=typescript&style=for-the-badge
[typescript-site]: https://www.typescriptlang.orgVisit https://playwright.dev/docs/intro for more information. ✨
# Happy hacking! 🎭