Skip to content

Commit 8c1711e

Browse files
committed
fix: e2e test failing
1 parent e398392 commit 8c1711e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

includes/util/feedzy-rss-feeds-conditions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public function is_condition_met( $condition, $value ): bool {
191191
$condition_value = $condition_value->getTimestamp();
192192
} elseif ( isset( $condition['field'] ) && in_array( $condition['field'], array( 'title', 'description', 'fullcontent' ), true ) ) {
193193
// Check if the field type is title, description or fullcontent, we compare the length of the string.
194-
$value = strlen( $value );
194+
$value = strlen( $value );
195195
$condition_value = (int) $condition_value;
196196
}
197197

@@ -265,11 +265,11 @@ public function evaluate_conditions( $continue, $attrs, $item, $feed_url, $index
265265
case 'fullcontent':
266266
$content = $item->get_item_tags( SIMPLEPIE_NAMESPACE_ATOM_10, 'full-content' );
267267
$content = ! empty( $content[0]['data'] ) ? $content[0]['data'] : '';
268-
$value = wp_strip_all_tags( $content, true );
268+
$value = wp_strip_all_tags( $content, true );
269269
break;
270270
case 'author':
271271
$author = $item->get_author();
272-
$value = $author ? $author->get_name() : '';
272+
$value = $author ? $author->get_name() : '';
273273
break;
274274
case 'date':
275275
$value = strtotime( $item->get_date() );

tests/e2e/specs/upsell.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ test.describe( 'Upsell', () => {
3030
// Hover over text named Filter by Keyword
3131
const filtersTab = page.locator('#feedzy-import-form > div.feedzy-accordion > div:nth-child(2)');
3232

33-
// It should have 3 elements with .only-pro-content class.
34-
await expect( filtersTab.locator('.only-pro-content').count() ).resolves.toBe(3);
33+
// It should have 1 elements with .only-pro-content class.
34+
await expect( filtersTab.locator('.only-pro-content').count() ).resolves.toBe(1);
3535

3636
const filterByKeywordAlert = await filtersTab.locator('.upgrade-alert').first();
3737
let upgradeLink = new URL( await filterByKeywordAlert.locator('a').first().getAttribute('href') );

0 commit comments

Comments
 (0)