Skip to content

Commit

Permalink
Merge pull request #8 from ovartem/update-playwright-project
Browse files Browse the repository at this point in the history
Update playwright project
  • Loading branch information
ovartem authored Jul 15, 2024
2 parents db758b4 + 33b9bd2 commit c7c1b7c
Show file tree
Hide file tree
Showing 17 changed files with 1,217 additions and 668 deletions.
7 changes: 0 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@ module.exports = {
commonjs: true,
es2021: true,
node: true,
mocha: true,
},
globals: {
browser: true,
driver: true,
$: true,
$$: true,
},
extends: [
'airbnb-base',
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/main.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Launch Playwright tests

on:
push:
branches:
- '**'

jobs:
playwright-tests:
env:
HOME: /root
timeout-minutes: 10
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.45.1-jammy
steps:
- name: Get code
uses: actions/checkout@v4
- name: Install Node JS
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- name: Upload report to GitHub Actions Artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: playwright-report/
retention-days: 7
14 changes: 14 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"recommendations": [
"streetsidesoftware.code-spell-checker",
"pflannery.vscode-versionlens",
"ms-playwright.playwright",
"pflannery.vscode-versionlens",
"vscode-icons-team.vscode-icons",
"dbaeumer.vscode-eslint",
"usernamehw.errorlens",
"github.vscode-pull-request-github",
"eamodio.gitlens",
"mariusalchimavicius.json-to-ts"
]
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,19 @@ npm install
## Usage

### Run tests:

```bash
npm run test
```

### Launch tests in UI mode:

```bash
npm run test-ui
```

### Run eslint rules and fix errors if possible:

```bash
npm run lint
```
Expand Down
Loading

0 comments on commit c7c1b7c

Please # to comment.