An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![🧪Playwright Regression Testing](https://github.com/upex-galaxy/playwright-typescript-gx/actions/workflows/regression.yml/badge.svg?branch=QA)](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📘





Logo

🧪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/QA

y 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.org

Visit https://playwright.dev/docs/intro for more information. ✨

# Happy hacking! 🎭