mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Previously these tests would run automatically when Angular DevTools lived in another repo. These files have continued to live here but have not been running automatically on each PR. Now, these test files have been revived to run properly with our changes since the repo merge. This is a first step to reviving our e2e testing. Next steps include writing cypress tests for new features like Injector Graph, Router tree, signals visualizations, etc. PR Close #61972
35 lines
958 B
JavaScript
35 lines
958 B
JavaScript
/**
|
|
* @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');
|
|
});
|
|
});
|