mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Jeremy Elbourn
parent
2ef6382bae
commit
5d1ce9f7c1
@@ -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,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>
|
||||
|
||||
@@ -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},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user