Show placeholder on mobile when photos not filling space

This commit is contained in:
2026-04-22 12:40:45 +04:00
parent d1d179bb93
commit b6e2964f8e
3 changed files with 20 additions and 1 deletions

View File

@@ -40,7 +40,12 @@ module('Integration | Component | place-photos-carousel', function (hooks) {
assert
.dom('.place-photos-carousel-wrapper')
.exists('it renders the wrapper');
assert.dom('.carousel-slide').exists({ count: 1 }, 'it renders one slide');
assert
.dom('.carousel-slide:not(.carousel-placeholder)')
.exists({ count: 1 }, 'it renders one real photo slide');
assert
.dom('.carousel-placeholder')
.exists({ count: 1 }, 'it renders one placeholder');
assert
.dom('img.place-header-photo')
.hasAttribute('data-src', 'photo1.jpg', 'it sets the data-src correctly');