mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
test(docs-infra): ufix e2e test for {@example} dgeni tags (#45551)
Previously, the `guide/compoent-style` page was used in e2e tests to
verify the behavior of `{@example}` dgeni tags. However, this guide has
been updated and no longer contains an `{@example}` tag.
This commit switches to using a different page (`api/common/NgIf`) that
does currently contain an `{@example}` tag.
(NOTE: This will also fix the [CI failures][1] in #45501.)
[1]: https://circleci.com/gh/angular/angular/1145424
PR Close #45551
This commit is contained in:
committed by
Jessica Janiuk
parent
24649b9930
commit
b57f8bea61
@@ -93,9 +93,9 @@ describe('site App', () => {
|
||||
});
|
||||
|
||||
it('should render `{@example}` dgeni tags as `<code-example>` elements with HTML escaped content', async () => {
|
||||
await page.navigateTo('guide/component-styles');
|
||||
const codeExample = element.all(by.css('code-example')).first();
|
||||
expect(await page.getInnerHtml(codeExample)).toContain('<h1>Tour of Heroes</h1>');
|
||||
await page.navigateTo('api/common/NgIf');
|
||||
const codeExample = element.all(by.css('code-example[region="NgIfSimple"]')).first();
|
||||
expect(await page.getInnerHtml(codeExample)).toContain('<br>');
|
||||
});
|
||||
|
||||
describe('scrolling to the top', () => {
|
||||
|
||||
Reference in New Issue
Block a user