test: fix aio e2e

- check for translated /features page content and title

Fixes #296
This commit is contained in:
Michael Prentice 2020-10-22 20:43:23 -04:00
parent eeb59b4f4d
commit 8a09cb9794

View File

@ -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);