Skip to content
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
Binary file added .DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Playwright Tests Original
name: main-workflow-original
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Playwright jobs
Expand Down
29 changes: 15 additions & 14 deletions .github/workflows/main-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Playwright Tests
name: Main workflow
on:
workflow_dispatch:
push:
Expand All @@ -7,7 +7,7 @@ on:
branches: [ main ]
jobs:
test:
name: Playwright jobs
name: Prod job
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
Expand All @@ -16,22 +16,23 @@ jobs:
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
run: |
npm ci
pip install testit-importer-allure
- name: TestIT configiration
run: |
testit --url ${{ secrets.TMS_URL }}
testit --privatetoken ${{ secrets.TMS_PRIVATE_TOKEN }}
testit --projectid ${{ secrets.TMS_PROJECT_ID }}
testit --configurationid ${{ secrets.TMS_CONFIGURATION_ID }}
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Install allure report
run: npm install -D allure-playwright
- name: Run Playwright tests
env:
TMS_PRIVATE_TOKEN: ${{ secrets.TMS_PRIVATE_TOKEN }}
TMS_URL: ${{ secrets.TMS_URL }}
TMS_PROJECT_ID: ${{ secrets.TMS_PROJECT_ID }}
TMS_CONFIGURATION_ID: ${{ secrets.TMS_CONFIGURATION_ID }}
TMS_TEST_RUN_NAME: ${{ secrets.TMS_TEST_RUN_NAME }}
TMS_ADAPTER_MODE: 2
run: npx playwright test fast.spec.ts
- name: Allure report
run: npx playwright test main-page.spec.ts
- name: Generate allure report
run: npm run allure:generate
- name: Import allure report in TestIT
run: testit --resultsdir allure-results --testrunname allure-reports
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
Expand Down
20 changes: 18 additions & 2 deletions .github/workflows/optional-flow.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Optional deploy flow
on:
workflow_dispatch:
push:
branches: [ optional-flow ]
pull_request:
branches: [ optional-flow ]
jobs:
test:
name: Prod job
Expand All @@ -13,13 +17,25 @@ jobs:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install testit-importer-allure
run: pip install testit-importer-allure
- name: testit configiration
run: |
testit --url ${{ secrets.TMS_URL }}
testit --privatetoken ${{ secrets.TMS_PRIVATE_TOKEN }}
testit --projectid ${{ secrets.TMS_PROJECT_ID }}
testit --configurationid ${{ secrets.TMS_CONFIGURATION_ID }}
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test main-page.spec.ts
- name: Allure report
run: npm run allure:generate
- name: allure-results
run: testit --resultsdir allure-results --testrunname allure-reports
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
name: allure-report
path: allure-report/
retention-days: 30
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ node_modules/
/allure-results/

.env
.DS_Store
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default defineConfig({
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: [['list', { printSteps: true }],["testit-adapter-playwright"]],
reporter: [['list', { printSteps: true }],["allure-playwright"]],
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
Expand Down
7 changes: 0 additions & 7 deletions tms.config.json

This file was deleted.

Loading