Display CMS Optimierungen 03-06-2026
This commit is contained in:
parent
6c6d683b9a
commit
bebfa63e87
17 changed files with 925 additions and 133 deletions
|
|
@ -176,6 +176,7 @@ test('returns playlist with offers config', function () {
|
|||
'bullets' => [],
|
||||
'disclaimer' => '',
|
||||
'qr_url' => 'https://cabinet-bielefeld.de',
|
||||
'qr_image_url' => 'https://portal.b2in.test/storage/display-qr-codes/cabinet.png',
|
||||
'qr_title' => 'Reservieren',
|
||||
'contact' => "0521 98620100\nTel. oder WhatsApp",
|
||||
'show_brand_text' => false,
|
||||
|
|
@ -193,6 +194,7 @@ test('returns playlist with offers config', function () {
|
|||
$response->assertJsonPath('playlist.0.slides.0.title', 'GOYA Sideboard');
|
||||
$response->assertJsonPath('playlist.0.slides.0.price', '489 €');
|
||||
$response->assertJsonPath('playlist.0.slides.0.qr_url', 'https://cabinet-bielefeld.de');
|
||||
$response->assertJsonPath('playlist.0.slides.0.qr_image_url', 'https://portal.b2in.test/storage/display-qr-codes/cabinet.png');
|
||||
});
|
||||
|
||||
test('returns playlist with multiple versions in order', function () {
|
||||
|
|
@ -449,7 +451,25 @@ test('display player keeps previews in a strict 9 by 16 viewport', function () {
|
|||
->toContain('this.settings.footer_claim')
|
||||
->toContain('this.settings.footer_url')
|
||||
->toContain('this.settings.header_logo_url')
|
||||
->toContain('/_cabinet/assets/b2in-logo-positive.svg')
|
||||
->toContain("url.startsWith('../assets/')")
|
||||
->toContain("!url.includes('/') && url.endsWith('.svg')")
|
||||
->toContain('this.settings.qr_label')
|
||||
->toContain('function setQrImage')
|
||||
->toContain('function qrCodeImageUrl')
|
||||
->toContain('options.imageUrl')
|
||||
->toContain('content.qr_image_url')
|
||||
->toContain('this.settings.qr_image_url')
|
||||
->toContain('slide.qr_image_url')
|
||||
->toContain("img.loading = 'eager'")
|
||||
->toContain('maxAttempts')
|
||||
->toContain('cb=${Date.now()}-${attempt}')
|
||||
->toContain('offer-slide--no-header')
|
||||
->toContain('offer-slide--no-bottom')
|
||||
->toContain('offer-bottom--info-only')
|
||||
->toContain('offer-bottom--qr-only')
|
||||
->toContain('offer-info--compact')
|
||||
->toContain('const showBottom = showInfo || showQrBox')
|
||||
->toContain('this.settings.show_footer !== false')
|
||||
->toContain('this.settings.show_logo !== false')
|
||||
->toContain('this.settings.show_claim !== false')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue