Skip to content

Commit

Permalink
Merge pull request #3 from uaxpasha/testBranch
Browse files Browse the repository at this point in the history
Test branch
  • Loading branch information
uaxpasha authored Mar 28, 2024
2 parents 39be5c6 + 77972bb commit 4ee2135
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 28 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ jobs:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.12.0'
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
- uses: actions/upload-artifact@v3
run: npx playwright test --project=chromium
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
Expand Down
27 changes: 11 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@
"license": "ISC",
"devDependencies": {
"@playwright/test": "^1.42.1",
// "@types/node": "^20.11.24",
"@types/node": "^20.12.0",
"@types/node": "^20.11.30",
"allure-playwright": "^2.15.0"
},
"dependencies": {
"axios": "^1.6.7",
"common-js": "^0.3.8",
"moment": "^2.30.1"
},
"engines": {
"node": "20.12.0"
"moment": "^2.30.1",
"playwright": "^1.42.1"
}
}
2 changes: 1 addition & 1 deletion tests/tests-examples/example.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ test('has title', async ({ page }) => {
});

// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/PlayXXXwright/);
await expect(page).toHaveTitle(/Playwright/);
});

test('get started link', async ({ page }) => {
Expand Down

0 comments on commit 4ee2135

Please sign in to comment.