mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
test(): screenshot diff for toolbar (#6308)
* Adds the toolbar demo to the e2e app and adds a screenshot diff for it.
This commit is contained in:
committed by
mmalerba
parent
af67e7c273
commit
fbc0b95758
@@ -0,0 +1,14 @@
|
||||
import {browser, by, element} from 'protractor';
|
||||
import {screenshot} from '../screenshot';
|
||||
|
||||
describe('md-toolbar', () => {
|
||||
|
||||
beforeEach(() => browser.get('/toolbar'));
|
||||
|
||||
it('should show a toolbar', async () => {
|
||||
expect(element(by.tagName('md-toolbar'))).toBeDefined();
|
||||
|
||||
screenshot('multiple toolbar components');
|
||||
});
|
||||
|
||||
});
|
||||
@@ -1,6 +1,4 @@
|
||||
import {Routes} from '@angular/router';
|
||||
import {CardFancyExample, ListOverviewExample} from '@angular/material-examples';
|
||||
|
||||
import {Home} from './e2e-app';
|
||||
import {ButtonE2E} from '../button/button-e2e';
|
||||
import {BasicTabs} from '../tabs/tabs-e2e';
|
||||
@@ -17,6 +15,11 @@ import {FullscreenE2E} from '../fullscreen/fullscreen-e2e';
|
||||
import {InputE2E} from '../input/input-e2e';
|
||||
import {SidenavE2E} from '../sidenav/sidenav-e2e';
|
||||
import {BlockScrollStrategyE2E} from '../block-scroll-strategy/block-scroll-strategy-e2e';
|
||||
import {
|
||||
CardFancyExample,
|
||||
ListOverviewExample,
|
||||
ToolbarMultirowExample
|
||||
} from '@angular/material-examples';
|
||||
|
||||
export const E2E_APP_ROUTES: Routes = [
|
||||
{path: '', component: Home},
|
||||
@@ -37,4 +40,5 @@ export const E2E_APP_ROUTES: Routes = [
|
||||
{path: 'slide-toggle', component: SlideToggleE2E},
|
||||
{path: 'tabs', component: BasicTabs},
|
||||
{path: 'card-fancy', component: CardFancyExample},
|
||||
{path: 'toolbar', component: ToolbarMultirowExample}
|
||||
];
|
||||
|
||||
@@ -4,3 +4,4 @@ export * from './example-module';
|
||||
export * from './list-overview/list-overview-example';
|
||||
export * from './datepicker-overview/datepicker-overview-example';
|
||||
export * from './card-fancy/card-fancy-example';
|
||||
export * from './toolbar-multirow/toolbar-multirow-example';
|
||||
|
||||
Reference in New Issue
Block a user