Skip to content

lmparris21/Slopopedia-Test-Framework

Repository files navigation

Getting Started

Clone the repository to your local machine:

git clone https://github.com/externships/ex7

Cd into the project directory:

cd ex7

Download project dependencies:

npm install

If this is your first time using Playwright, you will need to install the browsers:

npx playwright install

Updating Your Local Repository

When there are updates to the main branch, follow these steps to ensure your local environment is up to date:

  1. Fetch the latest changes from the remote repository:
git fetch origin
  1. Checkout the main branch:
git checkout main
  1. Pull the latest changes:
git pull origin main
  1. Install any new dependencies:
npm install

Running Tests

Run All Tests

To run all tests across all browsers:

npm run test:all

or

npx playwright test

Run All Tests in Chromium

To run all tests in the Chromium browser:

npm run test chrome

Run All Tests in Firefox

To run all tests in the Firefox browser:

npm run test firefox

Run All Tests in Safari (WebKit)

To run all tests in the WebKit browser (Safari):

npm run test safari

Run Specific Test in a Specific Browser

To run a specific test file (e.g., example.spec.ts) in a specific browser (e.g., chrome):

npm run test example.spec.ts chrome

View Test Report

To view the test report after running tests:

npm run report

or

npx playwright show-report

Resources

TypeScript

npm version Chromium version Firefox version WebKit version

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API. Playwright is built to enable cross-browser web automation that is ever-green, capable, reliable and fast.

Linux macOS Windows
Chromium 127.0.6533.57
WebKit 17.4
Firefox 128.0

Headless execution is supported for all browsers on all platforms. Check out system requirements for details.

About

Slopopedia Project Playwright Tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published