File tree Expand file tree Collapse file tree 6 files changed +31
-0
lines changed Expand file tree Collapse file tree 6 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ describe ( 'list' , ( ) => {
2+ beforeEach ( ( ) => browser . get ( '/list' ) ) ;
3+
4+ it ( 'should render a list container' , ( ) => {
5+ expect ( element ( by . css ( 'md-list' ) ) . isPresent ( ) ) . toBe ( true ) ;
6+ } ) ;
7+
8+ it ( 'should render list items inside the list container' , ( ) => {
9+ let container = element ( by . css ( 'md-list' ) ) ;
10+ expect ( container . isElementPresent ( by . css ( 'md-list-item' ) ) ) . toBe ( true ) ;
11+ } ) ;
12+ } ) ;
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {SimpleRadioButtons} from './radio/radio-e2e';
1010import { BasicTabs } from './tabs/tabs-e2e' ;
1111import { DialogE2E , TestDialog } from './dialog/dialog-e2e' ;
1212import { GridListE2E } from './grid-list/grid-list-e2e' ;
13+ import { ListE2E } from './list/list-e2e' ;
1314import { MaterialModule } from '@angular/material' ;
1415import { E2E_APP_ROUTES } from './e2e-app/routes' ;
1516
@@ -32,6 +33,7 @@ import {E2E_APP_ROUTES} from './e2e-app/routes';
3233 DialogE2E ,
3334 TestDialog ,
3435 GridListE2E ,
36+ ListE2E ,
3537 ] ,
3638 bootstrap : [ E2EApp ] ,
3739 providers : [
Original file line number Diff line number Diff line change 33< a md-list-item [routerLink] ="['dialog'] "> Dialog</ a >
44< a md-list-item [routerLink] ="['grid-list'] "> Grid list</ a >
55< a md-list-item [routerLink] ="['icon'] "> Icon</ a >
6+ < a md-list-item [routerLink] ="['list'] "> List</ a >
67< a md-list-item [routerLink] ="['menu'] "> Menu</ a >
78< a md-list-item [routerLink] ="['radio'] "> Radios</ a >
89< a md-list-item [routerLink] ="['tabs'] "> Tabs</ a >
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import {SimpleRadioButtons} from '../radio/radio-e2e';
88import { SimpleCheckboxes } from '../checkbox/checkbox-e2e' ;
99import { DialogE2E } from '../dialog/dialog-e2e' ;
1010import { GridListE2E } from '../grid-list/grid-list-e2e' ;
11+ import { ListE2E } from '../list/list-e2e' ;
1112
1213export const E2E_APP_ROUTES : Routes = [
1314 { path : '' , component : Home } ,
@@ -19,4 +20,5 @@ export const E2E_APP_ROUTES: Routes = [
1920 { path : 'tabs' , component : BasicTabs } ,
2021 { path : 'dialog' , component : DialogE2E } ,
2122 { path : 'grid-list' , component : GridListE2E } ,
23+ { path : 'list' , component : ListE2E } ,
2224] ;
Original file line number Diff line number Diff line change 1+ < md-list >
2+ < h3 md-subheader > Items</ h3 >
3+ < md-list-item > Item one</ md-list-item >
4+ < md-list-item > Item two</ md-list-item >
5+ </ md-list >
Original file line number Diff line number Diff line change 1+ import { Component } from '@angular/core' ;
2+
3+
4+ @Component ( {
5+ moduleId : module . id ,
6+ selector : 'list-e2e' ,
7+ templateUrl : 'list-e2e.html' ,
8+ } )
9+ export class ListE2E { }
You can’t perform that action at this time.
0 commit comments