Skip to content

Playwright tests #152

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

Merged
merged 45 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
c4d7730
Playwright
berk76 Jan 24, 2025
5087f18
Upload artefact upgrade
berk76 Jan 24, 2025
b42ea82
Playwright
berk76 Jan 24, 2025
a096cf0
svjis_setup
berk76 Jan 24, 2025
35fb76b
python version
berk76 Jan 24, 2025
1827837
workflow
berk76 Jan 24, 2025
5884b9f
tests_playwright
berk76 Jan 24, 2025
7932787
tests_playwright
berk76 Jan 24, 2025
1c4837a
Unit tests
berk76 Jan 24, 2025
d7ebee5
tests_playwright
berk76 Jan 24, 2025
27d7a5f
Fill company
berk76 Jan 24, 2025
27c86bc
fill_company
berk76 Jan 24, 2025
20307ea
Header picture
berk76 Jan 25, 2025
bcbf0d5
Mobile tests
berk76 Jan 25, 2025
082f11f
flake8 E999 fix
berk76 Jan 25, 2025
c191918
Output dir
berk76 Jan 25, 2025
6c638ab
Output dir
berk76 Jan 25, 2025
ee1eb52
Full height screenshot
berk76 Jan 25, 2025
b91c438
Building
berk76 Jan 25, 2025
45b6f1d
Entrances
berk76 Jan 25, 2025
e11ab00
Building Units
berk76 Jan 25, 2025
f147db8
Scale factor 1
berk76 Jan 26, 2025
9bab2b0
Users
berk76 Jan 26, 2025
2962b80
Remove size from filename
berk76 Jan 26, 2025
390c378
Board
berk76 Jan 26, 2025
cc77aab
Always archive screen shots
berk76 Jan 26, 2025
19c7b64
Removal of picture
berk76 Jan 26, 2025
a792b2c
User units
berk76 Jan 26, 2025
5d33d79
Create article
berk76 Jan 27, 2025
fb6e11c
Create article
berk76 Jan 27, 2025
5a8fcd6
Article attachment
berk76 Jan 27, 2025
11c7f6f
Wait for selector
berk76 Jan 27, 2025
bac3c02
expect
berk76 Jan 28, 2025
aa4bdd4
Expect after screenshot
berk76 Jan 28, 2025
b17cff5
Delete media root between tests
berk76 Jan 28, 2025
8ec16bf
Menu navigation
berk76 Jan 29, 2025
3a1e46d
News
berk76 Jan 29, 2025
b3b52fb
Comments
berk76 Jan 29, 2025
acc5ddf
Comments
berk76 Jan 29, 2025
4fae369
Search for article
berk76 Jan 29, 2025
fb7e275
Expect with locator
berk76 Jan 29, 2025
5e38c9a
Survey
berk76 Jan 30, 2025
31a4fc3
Useful links
berk76 Jan 30, 2025
9043c14
Merge remote-tracking branch 'origin/master' into tests/playwright
berk76 Jan 30, 2025
bfed32d
Comments
berk76 Jan 30, 2025
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
42 changes: 42 additions & 0 deletions .github/workflows/playwright-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Playwright Tests

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
playwright-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout Code Repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: "pip"

- name: Install Dependencies
run: |
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
playwright install

- name: Run Tests
run: |
source venv/bin/activate
cd svjis
python manage.py test articles.tests_playwright

- name: Archive screen shots
if: always()
uses: actions/upload-artifact@v4
with:
name: Screenshots
path: svjis/playwright_output/**/*.*
overwrite: true
4 changes: 2 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Unit Tests

on:
push:
Expand Down Expand Up @@ -57,4 +57,4 @@ jobs:
run: |
source venv/bin/activate
cd svjis
python manage.py test
python manage.py test articles.tests
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ svjis/static/
local_settings.py
local_requirements.txt
*.mo
playwright_output/
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
django-stubs==5.1.2
pre-commit==4.1.0
factory-boy==3.3.1
playwright==1.49.1
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added svjis/articles/tests_playwright/assets/uklid.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading