Skip to content

Commit 7f3744f

Browse files
committed
fixed markdown article test
1 parent dee35ad commit 7f3744f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

site/markdown-content.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ test('Stay Updated Overview', async ({ page }) => {
154154
const pinnedArticle = page.locator('.v2-class---markdown-content-page__pinned-article').first();
155155
await compareScreenshot(page, pinnedArticle, 'markdown-content-blog-pinned-article.png');
156156

157-
const articleItem = page.locator('.v2-class---markdown-content-page__articles-list-item').first();
157+
const articleItem = page.locator('.v2-class---markdown-content-page__articles-list-item')
158+
.filter({ hasText: 'December 16, 2025' })
159+
.first();
160+
158161
await compareScreenshot(page, articleItem, 'markdown-content-blog-article-item.png');
159162
});

0 commit comments

Comments
 (0)