PDT Tests

KeyValue
StatusActive
OwnerQA Automation
Updated2026-03-26
ScopeProduction deployment verification across all 6 CNC sites

PDT (Production Deployment Tests) exist to confirm that a deploy did not break anything. They run after every deploy and answer: does the homepage load, does the menu work, does search return results, does video play, do category navigations land on real pages? They are not a full user journey suite — that is E2E. They are a fast, targeted gate that catches the most common deploy regressions before they reach readers.

What The Suite Does

CapabilityWhat It Means
multi-phase per testeach test covers several related steps (homepage → menu → article → footer)
ad presence checkshomepage and article ads validated as soft checks
site-specific featurescar search for Auto, premium sections for E15 and Reflex, sports sections for iSport
consent handlingeach test dismisses consent before assertions
screenshot on failurekey phases capture screenshots for debugging

Current Shape

MetricCurrent Snapshot
total tests30
passing30
pass rate100%
sites covered6
spec files6 (one per site in tests/pdt/)
duration~5m 20s
scheduleafter deploys

Test Counts By Site

SiteTestsNotes
Auto5includes car search feature test
Blesk4
E155includes premium category test
iSport5includes football and hockey section tests
Opinio6revenue calculator, category filtering, subdomain nav, auth pages, search
Reflex6includes photo gallery, premium, and commentary section
Total30

Full Test List

SiteTest NameCategory
Autoauto.czHomepage & Articlehomepage, menu, article, footer
Autoauto.czVideo Articlevideo section navigation, video player
Autoauto.czSearchsearch overlay, results, article click
Autoauto.czCategory Navigationnews category navigation
Autoauto.czCar Search Featurebrand dropdown, model dropdown, search results
Bleskblesk.czHomepage & Articlehomepage, menu, article, weather, footer
Bleskblesk.czVideo ArticleBlesk TV category navigation
Bleskblesk.czSearchsearch field, results, result click
Bleskblesk.czNavigation Categoriescrime section, news section
E15e15.czHomepage & Articlehomepage, menu, article, footer
E15e15.czVideo Articlevideo category, video player
E15e15.czSearchsearch field, results, article click
E15e15.czPremium Categorypremium section loads, paywall present
E15e15.czGallerygallery article, photo navigation
iSportisport.czHomepage & Articlehomepage, menu, article, footer
iSportisport.czFootball Section/fotbal loads, article click
iSportisport.czHockey Section/hokej loads, article click
iSportisport.czPremium Sectionpremium section, paywall present
iSportisport.czVideo Contentvideo section, player present
Opiniopdt: revenue calculator computes correctlyrevenue calculator UI
Opiniopdt: category filtering returns results/publikace category filter
Opiniopdt: subdomain navigation works consistently{author}.opinio.cz subdomain
Opiniopdt: authentication pages load correctlylogin and registration pages
Opiniopdt: search functionality returns resultssearch returns articles
Reflexreflex.czHomepage & Articlehomepage, menu, article, footer
Reflexreflex.czPhoto Gallery Articlegallery opens, photo navigation works
Reflexreflex.czVideo Articlevideo section, video player
Reflexreflex.czSearchsearch field, results, article click
Reflexreflex.czPremium Categorypremium section, paywall present
Reflexreflex.czCommentary Section/komentare loads, articles present

Ad Checks

PDT tests include non-blocking ad presence checks at key points. A missing ad does not fail the test — it is logged and surfaced in the run report. This catches ad delivery regressions without making the deploy gate brittle.

Check TypeWhere It Appears
Big Page AD (branding slot)homepage + article
Native ADhomepage
Creative Bannerarticle
Top Sponsorarticle
Under Articlearticle
Billboard Bottomarticle
Rectangle AD (Auto only)article

How To Run

CommandWhat It Does
npm run test:pdtAll 30 tests, all sites
npm run test:pdt -- --grep "blesk"Blesk only (4 tests)
npm run test:pdt -- --grep "auto"Auto only (5 tests)
npm run test:headedHeaded browser
npm run test:traceWith Playwright trace
npm run test:debugWith debug mode

Optimization History

PDT was originally slow and brittle. It has been significantly improved.

MetricBeforeAfter
duration12.9 min5.3 min
pass rate86.7%100%

Key changes that produced these results:

ChangeEffect
removed per-step screenshots in non-critical phaseslargest single time saving
reduced ad check timeouts from 5s to 2s (soft checks)eliminated most waiting time
removed handleConsentQuick overheadsimplified consent path
increased test timeouts to 180seliminated false timeout failures
added direct URL fallback when menu click failsremoved flakiness on navigation tests

PDT vs E2E

PDTE2E
purposedid this deploy break anything?do user journeys work end-to-end?
when to runafter every deploynightly
depthmulti-phase feature checksfull user flows (gallery, video, podcast, share)
duration~5m 20s~5m 42s
test count30 (5/site)76 (12-15/site)
ad checksyesno
soft failuresyes (ads, non-critical steps)yes (content fallbacks)

Failure Handling

Failure TypeWhere To Check
homepage load failscheck if site is actually down; check HTTP status
menu does not opencheck hamburger selector in site-selectors.ts
video player not foundcheck if video page URL changed
search returns nothingcheck if search field selector changed
premium section failscheck if paywall selector changed
car search fails (Auto)check brand/model dropdown selectors
NeedGo To
rapid health checkSmoke Tests
full user journeysE2E Tests
high-level suite listTest Types