chore: Add some tests #283
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
backend
ci
docs
frontend
lgtm
blocked
lgtm
done
lgtm
need 1
size
huge
size
large
size
medium
size
small
No milestone
No project
No assignees
4 participants
Due date
No due date set.
Dependencies
No dependencies set.
Reference: SZUT/casino#283
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "playwright"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
chore: Add some teststo WIP: chore: Add some testsCode Review
✅ Positive aspects:
❌ Issues to address:
frontend/playwright.config.ts:37
frontend/e2e/homepage.spec.ts:7-8
💡 Suggestions:
The Playwright setup is solid, but the test implementation could be more robust.
9fe210a5b9
toff03649ce7
Code Review: Found several issues that need fixing:
Please fix these issues before merging. The E2E testing addition is valuable but needs these corrections.
ff03649ce7
to62999d749d
Code Review Feedback:
The PR adds valuable E2E testing infrastructure, but there are several issues to address:
Critical Issues:
**** - Playwright commands should run from directory. Add to these steps.
**** - Missing semicolon. Should be not
Improvements Needed:
3. **** - Test assertions are fragile as they depend on German text ('Willkommensbonus', 'von bis zu €'). Consider using data-testid attributes or more semantic selectors.
Good additions:
Please fix the working directory and syntax issues before merging.
Code Review Feedback: The PR adds valuable E2E testing infrastructure, but there are several issues to address. Critical Issues: 1. .gitea/workflows/ci.yml lines 27-28 - Playwright commands should run from frontend/ directory. Add working-directory: ./frontend to these steps. 2. frontend/playwright.config.ts line 37 - Missing semicolon. Should be }); not }). Improvements Needed: 3. frontend/e2e/homepage.spec.ts lines 6-8 - Test assertions are fragile as they depend on German text. Consider using data-testid attributes. 4. frontend/package.json lines 42-44 - Unnecessary reordering creates noise in diff. Good additions: Proper Playwright setup, CI integration, correct dependency management. Please fix the working directory and syntax issues before merging.
62999d749d
to7ea69571bc
7ea69571bc
toa9064f2e44
Code Review: Issues to address: 1) CI config line 190 missing working directory - should cd frontend before bunx playwright test, 2) playwright.config.ts missing trailing newline at line 37, 3) package.json devDependencies not alphabetically ordered after moving @angular/compiler-cli, 4) Test assertions in homepage.spec.ts lines 6-8 are fragile using text like 'von bis zu €' - consider data-testid selectors instead. Overall good Playwright setup with proper browser coverage and CI integration.
Code Review for PR #283: Add Playwright E2E Testing
Overall, this is a good addition that sets up end-to-end testing infrastructure for the frontend. The implementation is mostly solid, but there are a few minor issues to address:
✅ Positives:
🔧 Issues to Address:
playwright.config.ts:37 - Missing semicolon at the end of the file. The export statement should end with a semicolon for consistency.
frontend/e2e/homepage.spec.ts:7-8 - The test assertions are quite brittle as they depend on specific German text ('Willkommensbonus', 'von bis zu €'). Consider using data-testid attributes or more generic selectors that won't break if text content changes.
frontend/package.json - The devDependencies reordering (moving @angular/compiler-cli) seems unnecessary and adds noise to the diff.
💡 Suggestions:
Minor:
The CI job looks well-configured with appropriate dependency caching and conditional execution. Good work on the infrastructure setup!
a9064f2e44
to4c9bd97a49
Code Review Results
This PR adds Playwright E2E testing infrastructure, which is a valuable addition. However, there are several minor issues that should be addressed:
Issues to Fix:
Missing trailing newlines in multiple files:
Package.json ordering ():
Fragile test selectors ():
Recommendations:
The Playwright configuration and CI integration look solid overall.
4c9bd97a49
tobcee6599b3
Code Review for PR #283
Overall Assessment: Good addition of Playwright E2E testing infrastructure. The changes are mostly well-structured but need some minor fixes.
Issues to address:
Consider using more robust selectors like attributes
Suggestions:
The Playwright setup and CI integration look solid overall. Please address the syntax error and consider improving test stability.
bcee6599b3
to705482bab3
Code Review
This PR successfully adds Playwright E2E testing with good CI integration. Here are my findings:
✅ Positive Points:
⚠️ Issues Found:
Critical:
Minor:
💡 Suggestions:
Overall, this is a solid foundation for E2E testing. Please fix the missing newline and consider the suggestions for improvement.
705482bab3
to52f706a75f
Code Review - Issues Found
🔧 CI Workflow (.gitea/workflows/ci.yml:26-30)
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. command should be formatted across multiple lines for better readability
📝 TypeScript Style (frontend/playwright.config.ts:37)
🧪 Test Quality (frontend/e2e/homepage.spec.ts:6-8)
📦 Package Organization (frontend/package.json:42-44)
✅ Positives:
Recommendation: Fix the style issues and consider more robust test selectors before merging.
52f706a75f
to7a2a60878e
7a2a60878e
todb88a511b6
db88a511b6
to6a7b3cc550
6a7b3cc550
toff1247d350
ff1247d350
to78d97489c1
78d97489c1
to6984b82d28
6984b82d28
toef610ab30d
ef610ab30d
to6462111850
6462111850
to21fb6656c5
21fb6656c5
to3b29ce1797
3b29ce1797
to81731ea14f
81731ea14f
toaa3bd96881
aa3bd96881
tob3b104329b
b3b104329b
toc87e1a9e2f
c87e1a9e2f
to11e5436e67
11e5436e67
to017d32bbb6
017d32bbb6
to218bc611db
218bc611db
toc9febc1b53
c9febc1b53
tof50ff24b10
f50ff24b10
to9a1cf21b7c
9a1cf21b7c
to7f1faa39be
7f1faa39be
to325df279c2
325df279c2
to5166fa6cc4
5166fa6cc4
tof73084cdba
👮♀️⚠️ This is a friendly reminder that the diff size of this PR is bigger than 200 lines we aim for. Please consider splitting this PR into more digestible pieces!
f73084cdba
todfab3afd28
dfab3afd28
todbf7d0b458
dbf7d0b458
to4fafba5731
4fafba5731
to071097a652
071097a652
to138625f7f4
138625f7f4
toae22692f80
ae22692f80
toe828efdfa7
WIP: chore: Add some teststo chore: Add some testsfuck you