Skip to content

Commit 8e62ff5

Browse files
authored
Merge pull request #25260 from github/repo-sync
repo sync
2 parents 7b67e8f + 6ca732f commit 8e62ff5

File tree

2 files changed

+13
-29
lines changed

2 files changed

+13
-29
lines changed

Diff for: tests/rendering-fixtures/head.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { getDOM } from '../helpers/e2etest.js'
2+
3+
describe('<head>', () => {
4+
test('includes page intro in `description` meta tag', async () => {
5+
const $ = await getDOM('/get-started/markdown/intro')
6+
// The intro has Markdown syntax which becomes HTML encoded in the lead element.
7+
const lead = $('[data-testid="lead"] p')
8+
expect(lead.html()).toMatch('<code>syntax</code>')
9+
// As a meta description its content is stripped of all HTML
10+
const description = $('head meta[name="description"]')
11+
expect(description.attr('content')).toBe('This intro has Markdown syntax for GitHub')
12+
})
13+
})

Diff for: tests/rendering/head.js

-29
This file was deleted.

0 commit comments

Comments
 (0)