/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/e2e/src/app.e2e-spec.ts
33 строки
900 B
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 {MaterialDocsAppPage} from './app.po'; import {browser, logging} from 'protractor'; describe('Material Docs App', () => { let page: MaterialDocsAppPage; beforeEach(() => { page = new MaterialDocsAppPage(); }); it('should display welcome message', async () => { await page.navigateTo(); expect(await page.getTitleText()).toEqual('Angular Material'); }); afterEach(async () => { // Assert that there are no errors emitted from the browser const logs = await browser.manage().logs().get(logging.Type.BROWSER); expect(logs).not.toContain( jasmine.objectContaining({ level: logging.Level.SEVERE, } as logging.Entry), ); }); });