2020-02-07 14:42:00 +00:00
|
|
|
describe('Testing the Todo app Demo', () => {
|
|
|
|
|
beforeEach(() => {
|
|
|
|
|
cy.visit('/');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('should contain the todos application', () => {
|
2020-04-08 23:22:14 +00:00
|
|
|
cy.enter('#sample-app').then((getBody) => {
|
2020-02-07 14:42:00 +00:00
|
|
|
getBody().contains('Todos');
|
|
|
|
|
getBody().contains('About');
|
|
|
|
|
getBody().contains('Clear completed');
|
|
|
|
|
getBody().contains('Click to expand');
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('should contain the "Components" tab', () => {
|
|
|
|
|
cy.get('.mat-tab-label-content').contains('Components');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('should contain the "Profiler" tab', () => {
|
|
|
|
|
cy.get('.mat-tab-label-content').contains('Profiler');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('should contain "app-root" and "app-todo-demo" in the component tree', () => {
|
2020-04-08 23:22:14 +00:00
|
|
|
cy.get('.tree-node').contains('app-root');
|
|
|
|
|
cy.get('.tree-node').contains('app-todo-demo');
|
2020-02-07 14:42:00 +00:00
|
|
|
});
|
|
|
|
|
});
|