test(core): fix security example e2e test (#26777)

The changes in d5cbcef0ea caused this test to fail.

PR Close #26777
This commit is contained in:
Pete Bacon Darwin 2018-10-26 08:57:48 +01:00 committed by Matias Niemelä
parent f8741c0985
commit d878f3df93
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ describe('Security E2E Tests', () => {
expect(interpolated.getText()) expect(interpolated.getText())
.toContain('Template <script>alert("0wned")</script> <b>Syntax</b>'); .toContain('Template <script>alert("0wned")</script> <b>Syntax</b>');
let bound = element(By.className('e2e-inner-html-bound')); let bound = element(By.className('e2e-inner-html-bound'));
expect(bound.getText()).toContain('Template alert("0wned") Syntax'); expect(bound.getText()).toContain('Template Syntax');
let bold = element(By.css('.e2e-inner-html-bound b')); let bold = element(By.css('.e2e-inner-html-bound b'));
expect(bold.getText()).toContain('Syntax'); expect(bold.getText()).toContain('Syntax');
}); });