Skip to content

Commit a4344e5

Browse files
committed
Add another test
1 parent 2cd310c commit a4344e5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test-app/tests/heading/rendering-test.gts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,20 @@ module('Rendering | Heading', function (hooks) {
263263
assert.dom('#b').hasTagName('h3');
264264
});
265265

266+
test('in a section (with hardcoded 2 h1)', async function (assert) {
267+
await render(
268+
<template>
269+
<h1 id="a">one</h1>
270+
<h1 id="c">three</h1>
271+
<section>
272+
<Heading id="b">two</Heading>
273+
</section>
274+
</template>
275+
);
276+
277+
assert.dom('#b').hasTagName('h2');
278+
});
279+
266280
test('top-level adjacent', async function (assert) {
267281
await render(
268282
<template>

0 commit comments

Comments
 (0)