Skip to content

Commit 5d1ce9f

Browse files
devversionjelbourn
authored andcommitted
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.
1 parent 2ef6382 commit 5d1ce9f

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

e2e/components/card-e2e.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import {browser, by, element} from 'protractor';
22
import {screenshot} from '../screenshot';
33

44
describe('md-card', () => {
5-
describe('card-fancy', () => {
6-
beforeEach(() => browser.get('/card-fancy'));
75

8-
it('should show a card', async () => {
9-
const card = element(by.tagName('md-card'));
10-
expect(card).toBeDefined();
6+
beforeEach(() => browser.get('/cards'));
117

12-
screenshot('fancy card example');
13-
});
8+
it('should show a card', async () => {
9+
const card = element(by.tagName('md-card'));
10+
expect(card).toBeDefined();
11+
12+
screenshot('fancy card example');
1413
});
14+
1515
});

src/e2e-app/e2e-app/e2e-app.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<md-nav-list *ngIf="showLinks">
44
<a md-list-item [routerLink]="['block-scroll-strategy']">Block scroll strategy</a>
55
<a md-list-item [routerLink]="['button']">Button</a>
6+
<a md-list-item [routerLink]="['button-toggle']">Button Toggle</a>
67
<a md-list-item [routerLink]="['checkbox']">Checkbox</a>
78
<a md-list-item [routerLink]="['dialog']">Dialog</a>
89
<a md-list-item [routerLink]="['expansion']">Expansion</a>
@@ -18,6 +19,8 @@
1819
<a md-list-item [routerLink]="['sidenav']">Sidenav</a>
1920
<a md-list-item [routerLink]="['slide-toggle']">Slide Toggle</a>
2021
<a md-list-item [routerLink]="['tabs']">Tabs</a>
22+
<a md-list-item [routerLink]="['cards']">Cards</a>
23+
<a md-list-item [routerLink]="['toolbar']">Toolbar</a>
2124
</md-nav-list>
2225

2326
<main>

src/e2e-app/e2e-app/routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ export const E2E_APP_ROUTES: Routes = [
4343
{path: 'sidenav', component: SidenavE2E},
4444
{path: 'slide-toggle', component: SlideToggleE2E},
4545
{path: 'tabs', component: BasicTabs},
46-
{path: 'card-fancy', component: CardFancyExample},
46+
{path: 'cards', component: CardFancyExample},
4747
{path: 'toolbar', component: ToolbarMultirowExample},
4848
];

0 commit comments

Comments
 (0)