test(devtools): updating todos

This commit is contained in:
Sumit Arora 2021-05-06 08:40:29 -04:00 committed by Minko Gechev
parent a7f6562158
commit 0f91c3f4fe
3 changed files with 7 additions and 3 deletions

View file

@ -20,7 +20,7 @@ describe('Tracking items from application to component tree', () => {
cy.enter('#sample-app').then((getBody) => {
getBody().find('app-todo').contains('Buy milk');
getBody().find('app-todo').contains('Save the world');
getBody().find('app-todo').contains('Build something fun!');
getBody().find('app-todo').contains('Buy cookies');
});

View file

@ -41,7 +41,11 @@ describe('node selection', () => {
cy.get('ng-property-view').last().find('mat-tree-node:contains("todo")').click();
cy.get('ng-property-view').last().find('mat-tree-node:contains("Save the world")').its('length').should('eq', 1);
cy.get('ng-property-view')
.last()
.find('mat-tree-node:contains("Build something fun!")')
.its('length')
.should('eq', 1);
});
});

View file

@ -21,7 +21,7 @@ export class TodosComponent implements OnInit, OnDestroy {
id: '42',
},
{
label: 'Save the world',
label: 'Build something fun!',
completed: false,
id: '43',
},