mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
test(devtools): updating todos
This commit is contained in:
parent
a7f6562158
commit
0f91c3f4fe
3 changed files with 7 additions and 3 deletions
|
|
@ -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');
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ export class TodosComponent implements OnInit, OnDestroy {
|
|||
id: '42',
|
||||
},
|
||||
{
|
||||
label: 'Save the world',
|
||||
label: 'Build something fun!',
|
||||
completed: false,
|
||||
id: '43',
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue