diff --git a/aio/content/examples/built-in-directives/e2e/src/app.e2e-spec.ts b/aio/content/examples/built-in-directives/e2e/src/app.e2e-spec.ts index d25537cfdfe..5914222617d 100644 --- a/aio/content/examples/built-in-directives/e2e/src/app.e2e-spec.ts +++ b/aio/content/examples/built-in-directives/e2e/src/app.e2e-spec.ts @@ -44,7 +44,7 @@ describe('Built-in Directives', () => { }); it('should hide app-item-detail', async () => { - const hiddenMessage = element.all(by.css('p')).get(11); + const hiddenMessage = element.all(by.css('p')).get(10); const hiddenDiv = element.all(by.css('app-item-detail')).get(2); expect(await hiddenMessage.getText()).toContain('in the DOM'); diff --git a/aio/content/examples/built-in-directives/src/app/app.component.html b/aio/content/examples/built-in-directives/src/app/app.component.html index 102827b6299..6afd6adb651 100644 --- a/aio/content/examples/built-in-directives/src/app/app.component.html +++ b/aio/content/examples/built-in-directives/src/app/app.component.html @@ -18,11 +18,6 @@
-- - -
-
diff --git a/aio/content/examples/property-binding/e2e/src/app.e2e-spec.ts b/aio/content/examples/property-binding/e2e/src/app.e2e-spec.ts
index 1124372cd2c..22c90b60274 100644
--- a/aio/content/examples/property-binding/e2e/src/app.e2e-spec.ts
+++ b/aio/content/examples/property-binding/e2e/src/app.e2e-spec.ts
@@ -11,7 +11,7 @@ describe('Property binding e2e tests', () => {
it('should display four phone pictures', async () => {
expect(await element.all(by.css('img')).isPresent()).toBe(true);
- expect(await element.all(by.css('img')).count()).toBe(4);
+ expect(await element.all(by.css('img')).count()).toBe(3);
});
it('should display Disabled button', async () => {
@@ -19,7 +19,7 @@ describe('Property binding e2e tests', () => {
});
it('should display Binding to a property of a directive', async () => {
- expect(await element.all(by.css('h2')).get(4).getText()).toBe(`Binding to a property of a directive`);
+ expect(await element.all(by.css('h2')).get(3).getText()).toBe(`Binding to a property of a directive`);
});
it('should display blue', async () => {
@@ -43,6 +43,6 @@ describe('Property binding e2e tests', () => {
});
it('should display Malicious content', async () => {
- expect(await element.all(by.css('h2')).get(7).getText()).toBe(`Malicious content`);
+ expect(await element.all(by.css('h2')).get(6).getText()).toBe(`Malicious content`);
});
});
diff --git a/aio/content/examples/property-binding/src/app/app.component.html b/aio/content/examples/property-binding/src/app/app.component.html
index f72099e174c..e91b4ee6ee5 100644
--- a/aio/content/examples/property-binding/src/app/app.component.html
+++ b/aio/content/examples/property-binding/src/app/app.component.html
@@ -6,8 +6,6 @@
-