Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from microsoft:main #64

Merged
merged 5 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/tests_primary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
node-version: 18
browser: chromium
- os: ubuntu-22.04
node-version: 20.5.x
node-version: 20
browser: chromium
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -113,10 +113,10 @@ jobs:
node-version: 18
shard: 2/2
- os: ubuntu-latest
node-version: 20.5.x
node-version: 20
shard: 1/2
- os: ubuntu-latest
node-version: 20.5.x
node-version: 20
shard: 2/2
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests_secondary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:
- os: ubuntu-latest
node_version: 18
- os: ubuntu-latest
node_version: 20.5.x
node_version: 20
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
Expand Down
23 changes: 21 additions & 2 deletions docs/src/intro-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ id: intro
title: "Installation"
---

## Introduction

Playwright Test was created specifically to accommodate the needs of end-to-end testing. Playwright supports all modern rendering engines including Chromium, WebKit, and Firefox. Test on Windows, Linux, and macOS, locally or on CI, headless or headed with native mobile emulation of Google Chrome for Android and Mobile Safari.

**You will learn**
Expand Down Expand Up @@ -57,7 +59,6 @@ Run the install command and select the following to get started:
- Add a GitHub Actions workflow to easily run tests on CI
- Install Playwright browsers (default is true)


## What's Installed

Playwright will download the browsers needed as well as create the following files.
Expand All @@ -84,13 +85,18 @@ By default tests will be run on all 3 browsers, chromium, firefox and webkit usi
npx playwright test
```

![tests running in command line](https://github.com/microsoft/playwright/assets/13063165/981c1b2b-dc7e-4b85-b241-272b44da6628)
See our doc on [Running Tests](./running-tests.md) to learn more about running tests in headed mode, running multiple tests, running specific tests etc.
## Running the Example Test in UI Mode

Run your tests with [UI Mode](./test-ui-mode.md) for a better developer experience with time travel debugging, watch mode and more.

```bash
npx playwright test --ui
```
![UI Mode](https://github.com/microsoft/playwright/assets/13063165/c5b501cc-4f5d-485a-87cc-66044c651786)

Check out or [detailed guide on UI Mode](./test-ui-mode.md) to learn more about it's features.

## HTML Test Reports

Expand All @@ -100,7 +106,20 @@ Once your test has finished running a [HTML Reporter](./test-reporters.md#html-r
npx playwright show-report
```

<img width="1392" alt="HTML Reporter" src="https://user-images.githubusercontent.com/13063165/212743312-edf1e8ed-3fc2-48aa-9c93-24ae3e36504d.png" />
![HTML Report](https://github.com/microsoft/playwright/assets/13063165/38ec17a7-9e61-4002-b137-a93812765501)

## Updating Playwright

To update Playwright to the latest version run the following command:

```bash
npm install -D @playwright/test@latest
```
You can always check which version of Playwright you have by running the following command:

```bash
npx playwright --version
```

## System requirements

Expand Down
Loading