From 8a09cb9794a32b41c45f67f9703bbbd326e527e8 Mon Sep 17 00:00:00 2001 From: Michael Prentice Date: Thu, 22 Oct 2020 20:43:23 -0400 Subject: [PATCH] test: fix aio e2e - check for translated /features page content and title Fixes #296 --- aio/tests/e2e/src/app.e2e-spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aio/tests/e2e/src/app.e2e-spec.ts b/aio/tests/e2e/src/app.e2e-spec.ts index 9bb4ddb070..dfbbd338e8 100644 --- a/aio/tests/e2e/src/app.e2e-spec.ts +++ b/aio/tests/e2e/src/app.e2e-spec.ts @@ -12,7 +12,7 @@ describe('site App', function() { it('should show features text after clicking "Features"', () => { page.navigateTo(''); page.click(page.getTopMenuLink('features')); - expect(page.getDocViewerText()).toMatch(/Progressive web apps/i); + expect(page.getDocViewerText()).toMatch(/Aplicaciones Web Progresivas/i); }); it('should set appropriate window titles', () => { @@ -20,7 +20,7 @@ describe('site App', function() { expect(browser.getTitle()).toBe('Angular'); page.click(page.getTopMenuLink('features')); - expect(browser.getTitle()).toBe('Angular - FEATURES & BENEFITS'); + expect(browser.getTitle()).toBe('Angular - FUNCIONALIDADES & VENTAJAS'); page.click(page.homeLink); expect(browser.getTitle()).toBe('Angular'); @@ -79,7 +79,7 @@ describe('site App', function() { // navigate to a different page page.click(page.getTopMenuLink('features')); - expect(page.getDocViewerText()).toMatch(/Progressive web apps/i); + expect(page.getDocViewerText()).toMatch(/Aplicaciones Web Progresivas/i); // Show the menu page.click(page.docsMenuLink);