Skip to content

Commit

Permalink
test(grid): enter edit mode -> update -> exit edit mode -> check #3583
Browse files Browse the repository at this point in the history
  • Loading branch information
Lipata committed Feb 19, 2019
1 parent f7cce0b commit 342b8d6
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3142,8 +3142,16 @@ describe('IgxGrid Component Tests', () => {
fixture.detectChanges();
expect(grid.transactions.getAggregatedChanges(true)).toEqual(initialState);

// Enter edit mode
cellDate.onKeydownEnterEditMode({ stopPropagation: () => { }, preventDefault: () => { } });
tick();
fixture.detectChanges();
const newValue = new Date('01/01/2000');
cellDate.update(newValue);
// Exit edit mode
grid.endEdit(true);
tick();
fixture.detectChanges();

const expectedTransaction: Transaction = {
id: 1,
Expand Down

0 comments on commit 342b8d6

Please sign in to comment.