test: fix aio e2e
- check for translated /features page content and title Fixes #296
This commit is contained in:
parent
eeb59b4f4d
commit
8a09cb9794
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user