Skip to content

Commit d2f1d79

Browse files
committed
test: unskip OG image tests
1 parent 55d4728 commit d2f1d79

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

test/e2e/og-image.spec.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { expect, test } from './test-utils'
22

33
const paths = ['/', '/package/nuxt/v/3.20.2']
4+
45
for (const path of paths) {
56
test.describe(path, () => {
6-
test.skip(`og image for ${path}`, async ({ page, goto, baseURL }) => {
7+
test(`og image for ${path}`, async ({ page, goto, baseURL }) => {
78
await goto(path, { waitUntil: 'domcontentloaded' })
89

910
const ogImageUrl = await page.locator('meta[property="og:image"]').getAttribute('content')
@@ -19,7 +20,9 @@ for (const path of paths) {
1920
expect(response.headers()['content-type']).toContain('image/png')
2021

2122
const imageBuffer = await response.body()
22-
expect(imageBuffer).toMatchSnapshot({ name: `og-image-for-${path.replace(/\//g, '-')}.png` })
23+
expect(imageBuffer).toMatchSnapshot({
24+
name: `og-image-for-${path.replace(/\//g, '-')}.png`,
25+
})
2326
})
2427
})
2528
}
34.3 KB
Loading
32.5 KB
Loading

0 commit comments

Comments
 (0)