Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jaktestowac/bughuntfest-playwright-patterns

This repository contains code examples used during BugHuntFest conference - "New Automation Paradigms - How Has Playwright Changed the Testing Landscape?"
https://github.com/jaktestowac/bughuntfest-playwright-patterns

automation playwright test test-automation typescript

Last synced: 1 day ago
JSON representation

This repository contains code examples used during BugHuntFest conference - "New Automation Paradigms - How Has Playwright Changed the Testing Landscape?"

Awesome Lists containing this project

README

        

# BugHuntFest - New Automation Paradigms - How Has Playwright Changed the Testing Landscape? by jaktestowac.pl

This repository contains code examples used during BugHuntFest conference:

_"New Automation Paradigms - How Has Playwright Changed the Testing Landscape?"_

(Polish: _"Nowe paradygmaty automatyzacji - jak Playwright zmieniΕ‚ krajobraz testΓ³w?"_)

by [jaktestowac.pl](jaktestowac.pl) team.

More:

[BugHuntFest Vol.2](https://jaktestowac.pl/bughuntfest2/)

## Overview

Test framework used to demonstrate concepts of Playwright:

- Modularity
- Auto-waiting mechanism
- Test Data Management
- Non Functional Testing (Performance, Accessibility, Visual Testing)
- Test generation
- Reporting and tracking

## Who we are?

We are **Test Architects and Senior Lead Tech Quality Engineers**, who are passionate about testing.
We are constantly looking for new ways to improve our skills and share our knowledge with others.

We are here to help you become a better tester and achieve your testing goals!

Read more about our **[Contribution to Playwright and Community](https://jaktestowac.pl/contribution-playwright/)**

## Prerequisites

Before you start, make sure you have the following installed:

- [Node.js](https://nodejs.org) (v20 or later LTS version)
- [npm](https://www.npmjs.com/)
- our free application to practice automation - [🦎 GAD](https://github.com/jaktestowac/gad-gui-api-demo)

## Project Structure

```
β”œβ”€β”€ tests-gad/ # UI/API tests for 🦎 GAD application
β”‚ β”œβ”€β”€ tests/
β”‚ └── ...
β”œβ”€β”€ tests-perf/ # Performance tests for 🦎 GAD application
β”‚ β”œβ”€β”€ ...
```

## Setup

1. Clone the repository:

```bash
git clone https://github.com/jaktestowac/bughuntfest-playwright-patterns.git
cd bughuntfest-playwright-patterns/tests-gad
```

2. Install dependencies:

```bash
npm install
```

## Running Tests

Run all tests:

```bash
npm run test
```

Run specific test file:

```bash
npx playwright test tests/modularity/flashposts.spec.ts
```

Run tests with UI mode:

```bash
npx playwright test --ui
```

Generate test report:

```bash
npx playwright show-report
```

## Troubleshooting

Common issues and solutions:

1. **Tests fail on first run**

- Ensure 🦎 GAD application is running
- Check if correct Node.js version is installed

2. **Browser launch fails**
```bash
npx playwright install
```

## Resources

- [Playwright Documentation](https://playwright.dev/docs/intro)
- [Playwright GitHub Repository](https://github.com/microsoft/playwright)
- Additional resources - [BugHuntFest Vol.2](https://jaktestowac.pl/bughuntfest2/)

## Contact

Feel free to reach out to us:

- Website: [jaktestowac.pl](https://jaktestowac.pl)
- LinkedIn: [jaktestowac.pl](https://www.linkedin.com/company/jaktestowac/)

Happy testing and automating tests!πŸš€

jaktestowac.pl Team