mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
test(): screenshot diff for button-toggle (#6374)
* Adds the button-toggle overview example to the e2e app and captures a screenshot diff for it.
This commit is contained in:
committed by
mmalerba
parent
d66d735aba
commit
2286ad5b98
@@ -0,0 +1,13 @@
|
||||
import {browser, by, element} from 'protractor';
|
||||
import {screenshot} from '../screenshot';
|
||||
|
||||
describe('button-toggle', () => {
|
||||
|
||||
beforeEach(() => browser.get('/button-toggle'));
|
||||
|
||||
it('should show a button-toggle', async () => {
|
||||
expect(element(by.tagName('md-button-toggle'))).toBeDefined();
|
||||
screenshot();
|
||||
});
|
||||
|
||||
});
|
||||
@@ -18,13 +18,15 @@ import {BlockScrollStrategyE2E} from '../block-scroll-strategy/block-scroll-stra
|
||||
import {
|
||||
CardFancyExample,
|
||||
ListOverviewExample,
|
||||
ToolbarMultirowExample
|
||||
ToolbarMultirowExample,
|
||||
ButtonToggleOverviewExample,
|
||||
} from '@angular/material-examples';
|
||||
|
||||
export const E2E_APP_ROUTES: Routes = [
|
||||
{path: '', component: Home},
|
||||
{path: 'block-scroll-strategy', component: BlockScrollStrategyE2E},
|
||||
{path: 'button', component: ButtonE2E},
|
||||
{path: 'button-toggle', component: ButtonToggleOverviewExample},
|
||||
{path: 'checkbox', component: SimpleCheckboxes},
|
||||
{path: 'dialog', component: DialogE2E},
|
||||
{path: 'fullscreen', component: FullscreenE2E},
|
||||
@@ -40,5 +42,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}
|
||||
{path: 'toolbar', component: ToolbarMultirowExample},
|
||||
];
|
||||
|
||||
@@ -5,3 +5,4 @@ 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';
|
||||
export * from './button-toggle-overview/button-toggle-overview-example';
|
||||
|
||||
Reference in New Issue
Block a user