/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
devtools/cypress/integration/base.e2e.js
35 строк
958 B
AleksanderBodurri
test(devtools): revive cypress tests (#61972)
11 июл 2025, 20:33
11 июл 2025, 20:33
bf292bd
Код
Авторство
О чём код?
/** * @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 */ describe('Testing the Todo app Demo', () => { beforeEach(() => { cy.visit('/'); }); it('should contain the todos application', () => { cy.enterIframe('#sample-app').then((getBody) => { getBody().contains('Todos'); getBody().contains('About'); getBody().contains('Clear completed'); getBody().contains('Click to expand'); }); }); it('should contain the "Components" tab', () => { cy.contains('nav', 'Components'); }); it('should contain the "Profiler" tab', () => { cy.contains('nav', 'Profiler'); }); it('should contain "app-root" and "app-todo-demo" in the component tree', () => { cy.contains('ng-tree-node', 'app-root'); cy.contains('ng-tree-node', 'app-todo-demo'); }); });