Haszprus

Playwright tests for the blog

©   Haszprus   |   blog fejlesztés php

Na ha már törünk mindent, akkor legyenek end-to-end / UI tesztek. Az utóbbi években történt a szerveren egy PHP verziófrissítés, aminek a változásait csak ímmel-ámmal követtem le (nem volt fókuszban a blog, de ezt nyilván észlelték akik követnek valamennyire). Most ránéztem újra alaposabban a site-ra, mert növelni akartam kicsit a reszponzivitást, és rájöttem, hogy egy csomó feature el van törve, meg én is eltörtem ezt-azt miközben ezt lefejlesztettem. Meg arra is ráeszméltem így sok év szünet után, hogy atyaúristen mennyi minden funkciót csináltam itt Ami mókás és örömteli felismerés volt. Úgyhogy elkezdtem playwright teszteket írni. Még nincs sok, mivel tegnap álltam neki.

Egyelőre egy külön privát github repóba tettem, szépen CI-ban futtatva, kapok emailt ha hasal meg minden. Később valószínűleg jobb lenne beletenni a blog főrepójába.

Van pár known issue, és azokat már úgy akarom meghegeszteni, hogy teszt is legyen rá.

Hát, nemtom meddig lesz erre időm, de most épp van.

RSS: hozzászólások ehhez a bejegyzéshez 142 hozzászólás

Szólj hozzá Te is!

The post queue is working! Nem tetszik a Postok kezelese

Like frissítések, komment pixel szöszözés
válasz 1 like

My margins are the best margins, i know margins very well



Better logging (especially for pictures). Error 202403041401 was pretty useful.

Autorun: check for corrupt data, tpl_info_warning(),.info-warning, more info about errors on localhost/for haszprus

Hey its working and its PDO, ship it instantly, refactor later.

PageConfig fully replaced by HeaderOptions. Better ajax page handling. Our first plain PDO result class. Tests updated.

Footer css & new dimension opened towards /new/ pages. (prefix became unnecessary)


avatars for ircquote conversations, mainly found in idézet category - idézet - Haszprus überblog


Userinfo redesign & extract, HbUsersRepository, LegacyDbInterface, PdoCleanInterface.


Linkbár állat beküldő, általános. Grid-key-value grid layout, inline css include lehetőség



Merge pull request #204 from Haszprus/2024-03-13

Mail layout 0.1 cc-s minta egyelore
Keprendezo, pix_section enhancements
Commenteket is lehet szukiteni user:username syntax-szal.
Trusted post handling in comments search
Kommentkeresőben a válasz link csináljon valamit
Query counter is back
Logging / Debug Toolbar
Better search
No /r/
SmartyFactory
<!-- notags -->
Waiting comments box

Merge pull request #211 from Haszprus/2024-03-16

2024 03 16

Add dependabot for docker, github-actions, composer

Set todo id for new posts too, after the post is saved.



better links checker with guzzlehttp

Upgrade Smarty 3 -> 5 and require Carbon with some (temporary?) feature (date formatting) loss. Maybe I'll fix this in the future. Maybe.



PHPUnit in CI & Locally (#243)

* tests migrated to phpunit
* string_counter. Php fix
* phpunit
* delete $DBConfig, use DbConfig class
* tests bash script
* csak sikerult becommitolni, amit nem kellett volna * test

Menu frisstemak refactor & repo fix & precommit hook (#244)

* menu frisstemak refactor
* menu frisstemak refactor for todos
* code analysis fixes
* gall_entry_repo update

Lehet hasznalni Markdownt a commentekben a bbcode mellett. FormatterChainConcept. Php


#76, ez jól sikerült

kulcs érték
sikerült-e ez itt most jól? igen
tényleg? igen

kis heading

ez is megy

quote?

#76, válasz?

class SomePhpClass {
    protected string $king = "Burger";
}

no HtmlPreSaveFormatter. Php (#245)

  • no HtmlPreSaveFormatter. Php

  • todos link fix

  • Elvileg most már privmsg-ekben és kommentekben is van markdown, nagyon durva refaktor volt, bugok elképzelhetőek, mert "nem teszteltem szét", cserébe átírtam mindent. Éles (munka jellegű) projekten azért nem így csinálnám.


Profilkép feltöltő, post-kép feltöltő (#246)

  • gd added to docker. Version was obsolete in docker-compose after docker desktop update. Image upload 0.00001. Fullparaszt. Needs vendor update.
  • képfeltöltés kezdemény
  • realpreparedstatements FS deleted, a blog real prepared statementeket hasznal es jol
  • better file uploads
  • image purpose
  • image upload nicer
  • noecho
  • max file upload size, doesnt work on prod
  • avatarfeltolto, bugos
  • Profilkép feltöltő. A ratio is jo.

EC2-n is fut a blog (#247)

  • remove upload.php concept
  • image batch processing a /pix/batch konyvtarbol autorunnal.
  • ec2 init, batch upload change&test
  • give permissions for blog sript
  • blog git wrapper
  • give permissions for blog script
  • deploy ec2
  • ssh ec2
  • custom links to admin from queued and waiting posts
  • instant publishing more behind feature switch
  • tpl blog closed postolást azért engedje
  • syntax fix
  • sleeptime less
  • 80-as port
  • select prod config on ec2
  • config:: expected server name
  • directories created
  • ec2 to docker,
  • root docker
  • ec2.haszprus.hu
  • caddy atiranyitas httprol https-re, es https-en letsencrypt tanusitvanyt ad. ec2.haszprus.hu salamandraban vettunk fel ra A recordot.
  • pcntl parancsok futtatására, composer update
  • more proper ec2 deploy

2024 02 22 (#248)

  • remove upload.php concept
  • image batch processing a /pix/batch konyvtarbol autorunnal.
  • ec2 init, batch upload change&test
  • give permissions for blog script
  • deploy ec2
  • ssh ec2
  • custom links to admin from queued and waiting posts
  • instant publishing more behind feature switch
  • 80
  • select prod config on ec2
  • expected server name
  • caddy atiranyitas httprol https-re, es https-en letsencrypt tanusitvanyt ad. ec2.haszprus.hu salamandraban vettunk fel ra A recordot.
  • pcntl, composer update
  • more proper ec2 deploy
  • better requires & env configs
  • wtf result of rebase

Caddyfile képek kiszolgálása caddyvel, env settings, sudo in ec2 but not locally,


2024 04 23 (#251)

  • popular commands for blog script
  • blog: command line tool. Sort by popularity.
  • precommit hook
  • csak a mai dátumokkal legyen az h x órája
  • aws detection for blog script
  • blogscript

ircquote works for logins and pubnicks as well




php8 haszprus.hu ugy tunik a galleryt elvesztettuk








Merge d05938a362579f46b73f58779fee471679c24778 into 3ca5eaee83ec76d5c05acb1dce4a4f6eabf68daa


Merge d2f04bb4a3a7d575e7cf57745b586909b2b48efd into 3ca5eaee83ec76d5c05acb1dce4a4f6eabf68daa


Merge e7f386f06fd8024ec9caac0ef34f8fb735fb81e4 into 3ca5eaee83ec76d5c05acb1dce4a4f6eabf68daa


Merge 70e502f28c48fcde2b30fd58b601eef5bc5f87b1 into 3ca5eaee83ec76d5c05acb1dce4a4f6eabf68daa


Merge 7a5eae1430fb646f315ccee1e0208724482d43d8 into 3ca5eaee83ec76d5c05acb1dce4a4f6eabf68daa


Merge 2b9323decee5f70249a8104b36b65f83f5a239b8 into 3ca5eaee83ec76d5c05acb1dce4a4f6eabf68daa


Merge 159e1c6302258f6db3576b395a4e2152c16ed36f into 3ca5eaee83ec76d5c05acb1dce4a4f6eabf68daa


Merge 178b8bcdccafcbe26693c103e6af53057fe7f40b into 3ca5eaee83ec76d5c05acb1dce4a4f6eabf68daa


Merge c3a458334b8ea5b28ab493e6fe07e67b21aa2eef into 3ca5eaee83ec76d5c05acb1dce4a4f6eabf68daa


Merge e42d99e9a914dc1803a016d5586877d2a07f679e into 3ca5eaee83ec76d5c05acb1dce4a4f6eabf68daa


Merge 7e969d2f0168471f47d0395e82dd7f5268c3d5d2 into 3ca5eaee83ec76d5c05acb1dce4a4f6eabf68daa


Merge ced285cc92b8955a0aaea49fed00f4542ef59822 into 3ca5eaee83ec76d5c05acb1dce4a4f6eabf68daa


Merge 31d6c71e07dd679bfe9f7f1758e0559097a0189a into 3ca5eaee83ec76d5c05acb1dce4a4f6eabf68daa


Merge ca9cd58bef242916872f601e3b53fd8e59bf3368 into 3ca5eaee83ec76d5c05acb1dce4a4f6eabf68daa


Merge 4b4d765f2dd8a1916a3f5929e66a2077ba978a02 into 3ca5eaee83ec76d5c05acb1dce4a4f6eabf68daa


Merge 91a0b9fe45d132634cafc80fc1bdab1b6688721e into 3ca5eaee83ec76d5c05acb1dce4a4f6eabf68daa


Merge b3aa7305d1f55722e4b95eaddc5537ce31e08c0e into 3ca5eaee83ec76d5c05acb1dce4a4f6eabf68daa


Merge 76d64bb4a8fec27e95ffceaff871d8cfabaa53a2 into 3ca5eaee83ec76d5c05acb1dce4a4f6eabf68daa


Merge d946c12ee56cc56babb45f9686bb75616eef7e27 into 3ca5eaee83ec76d5c05acb1dce4a4f6eabf68daa


Merge pull request #274 from Haszprus/feature/2026/07/22/autodeploy-on-master

Add master-only FTPS autodeploy


Fix accumulating message board links


Redirect slugless accumulated message board URLs


Run new redirect regression test before deploy


Run production browser tests after deploy


Force deployment of message board URL fixes



Diff new branches from the default branch


Prepare browser test caches explicitly


Silence limited log filesystem warnings


Deploy current PDODB implementation


Merge pull request #275 from Haszprus/features/2026/08/01/url-handling

Normalize root category URLs


Bump blog version to 3.1.2026.08.02


Reject duplicate category parameters


Disallow duplicate category URLs for crawlers


Reject recursive message board URLs


Add lazy loading to image lists


Fix image half-year paths and test fixtures


Merge pull request #276 from Haszprus/feature/codex/post-image-drop

Add secure post image drop uploads


Merge pull request #277 from Haszprus/feature/codex/prod-image-duplicate-check

Fix production duplicate checks with image storage symlinks


Deploy Composer vendor atomically


Merge pull request #282 from Haszprus/feature/2026/08/18/phpunit-ci-speedup

Speed up PHPUnit dependency setup


Compare vendor deployment with production state


Merge pull request #285 from Haszprus/feature/2026/08/18/production-log-sync

Add read-only production log sync


Merge pull request #284 from Haszprus/feature/2026/08/18/deploy-backup-safety

Verify vendor backup before activation


Merge pull request #286 from Haszprus/feature/2026/08/19/modernize-github-actions

Migrate GitHub Actions to Node 24 releases


Merge pull request #287 from Haszprus/feature/2026/08/19/composer-security-audit

Audit and update vulnerable Composer dependencies


Merge pull request #288 from Haszprus/feature/2026/08/19/phpunit-coverage-report

Publish PHPUnit coverage reports


Merge pull request #289 from Haszprus/feature/2026/08/19/deploy-client-timeout

Bound FTPS client setup time


Merge pull request #290 from Haszprus/feature/2026/08/19/modernize-docker-actions

Modernize Docker GitHub Actions


Merge pull request #291 from Haszprus/feature/2026/08/21/deploy-resilience-tests

Test vendor and FTPS deployment failure paths


Merge pull request #293 from Haszprus/feature/2026/08/21/hetzner-origin

Add Hetzner blue-green origin deployment


Merge pull request #300 from Haszprus/feature/2026/08/22/reduce-ci-minutes

Reduce GitHub Actions minutes without losing coverage

Hozzászólásod:


Nem vagy bejelentkezve, de...

A)
hozzászólhatsz regisztrálatlanul...

B)
ha regisztrálva vagy, bejelentkezhetsz...