chore: missing router link in e2e app (#6645)

* Recently more examples have been added to the e2e-app. Those examples haven't been added to the nav bar yet.
This commit is contained in:
Paul Gschwendtner
2017-08-29 01:29:32 +02:00
committed by Jeremy Elbourn
parent 2ef6382bae
commit 5d1ce9f7c1
3 changed files with 11 additions and 8 deletions
+7 -7
View File
@@ -2,14 +2,14 @@ import {browser, by, element} from 'protractor';
import {screenshot} from '../screenshot';
describe('md-card', () => {
describe('card-fancy', () => {
beforeEach(() => browser.get('/card-fancy'));
it('should show a card', async () => {
const card = element(by.tagName('md-card'));
expect(card).toBeDefined();
beforeEach(() => browser.get('/cards'));
screenshot('fancy card example');
});
it('should show a card', async () => {
const card = element(by.tagName('md-card'));
expect(card).toBeDefined();
screenshot('fancy card example');
});
});
+3
View File
@@ -3,6 +3,7 @@
<md-nav-list *ngIf="showLinks">
<a md-list-item [routerLink]="['block-scroll-strategy']">Block scroll strategy</a>
<a md-list-item [routerLink]="['button']">Button</a>
<a md-list-item [routerLink]="['button-toggle']">Button Toggle</a>
<a md-list-item [routerLink]="['checkbox']">Checkbox</a>
<a md-list-item [routerLink]="['dialog']">Dialog</a>
<a md-list-item [routerLink]="['expansion']">Expansion</a>
@@ -18,6 +19,8 @@
<a md-list-item [routerLink]="['sidenav']">Sidenav</a>
<a md-list-item [routerLink]="['slide-toggle']">Slide Toggle</a>
<a md-list-item [routerLink]="['tabs']">Tabs</a>
<a md-list-item [routerLink]="['cards']">Cards</a>
<a md-list-item [routerLink]="['toolbar']">Toolbar</a>
</md-nav-list>
<main>
+1 -1
View File
@@ -43,6 +43,6 @@ export const E2E_APP_ROUTES: Routes = [
{path: 'sidenav', component: SidenavE2E},
{path: 'slide-toggle', component: SlideToggleE2E},
{path: 'tabs', component: BasicTabs},
{path: 'card-fancy', component: CardFancyExample},
{path: 'cards', component: CardFancyExample},
{path: 'toolbar', component: ToolbarMultirowExample},
];