diff --git a/aio/e2e/app.e2e-spec.ts b/aio/e2e/app.e2e-spec.ts index 1955dc777f..1a941da2f4 100644 --- a/aio/e2e/app.e2e-spec.ts +++ b/aio/e2e/app.e2e-spec.ts @@ -49,6 +49,13 @@ describe('site App', function() { }); }); + describe('tutorial docs', () => { + it('should not render a paragraph element inside the h1 element', () => { + page.navigateTo('tutorial/toh-pt1'); + expect(element(by.css('h1 p')).isPresent()).toBeFalsy(); + }); + }); + describe('google analytics', () => { beforeEach(done => page.gaReady.then(done)); diff --git a/aio/tools/transforms/templates/content.template.html b/aio/tools/transforms/templates/content.template.html index 82c8c864ce..a9216df1df 100644 --- a/aio/tools/transforms/templates/content.template.html +++ b/aio/tools/transforms/templates/content.template.html @@ -1,4 +1,4 @@ -{% if doc.title %}