/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/scenes/e2e/src/app.e2e-spec.ts
66 строк
1 KB
Kristiyan Kostadinov
build: reuse tslint rules for docs site and fix failures
29 апр 2025, 15:02
29 апр 2025, 15:02
da9627d
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {AppPage} from './app.po'; import {screenshot} from '../screenshot'; describe('screenshot scenes for each component', () => { // These tests simply serve as a convenient way to take snapshots of different pages, // they are not actually testing anything let page: AppPage; const components = [ 'autocomplete', 'badge', 'bottom-sheet', 'button', 'button-toggle', 'card', 'checkbox', 'chips', 'core', 'datepicker', 'dialog', 'divider', 'expansion', 'form-field', 'grid-list', 'icon', 'input', 'list', 'menu', 'paginator', 'progress-bar', 'progress-spinner', 'radio', 'ripple', 'select', 'sidenav', 'slide-toggle', 'slider', 'sort', 'stepper', 'snack-bar', 'table', 'tabs', 'toolbar', 'tooltip', 'tree', ]; beforeEach(() => { page = new AppPage(); }); for (const comp of components) { it(`screenshot for ${comp} scene`, async () => { await page.navigateTo(comp); await screenshot(comp); }); } });