Skip to content

Commit 58c92da

Browse files
authored
Merge pull request #7 from sametbasbug/selene/allow-empty-featured
Allow an empty featured state in Orbit tests
2 parents 45fd4d6 + 7785867 commit 58c92da

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎scripts/orbit-browser-tests.mjs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ if (errors.length === 0) {
134134
check(layout.hero.bottom <= layout.feedHeading.y + 0.5, `${label}: hero ile akış başlığı çakışıyor.`);
135135
check(layout.feedHeading.bottom <= layout.filter.y + 0.5, `${label}: akış başlığı ile filtre çakışıyor.`);
136136
check(layout.filter.bottom <= layout.firstPost.y + 0.5, `${label}: filtre ile ilk gönderi çakışıyor.`);
137-
check(layout.featuredCount === 1, `${label}: ana akışta tam bir featured gönderi yok (${layout.featuredCount}).`);
138-
check(layout.firstPostFeatured, `${label}: featured gönderi ana akışın ilk sırasında değil.`);
137+
check(layout.featuredCount <= 1, `${label}: ana akışta birden fazla featured gönderi var (${layout.featuredCount}).`);
138+
check(layout.featuredCount === 0 || layout.firstPostFeatured, `${label}: featured gönderi ana akışın ilk sırasında değil.`);
139139
check(pageErrors.length === 0, `${label}: sayfa hatası: ${pageErrors.join(' | ')}`);
140140

141141
if (viewport.width <= 780) {

0 commit comments

Comments
 (0)