Skip to content

Commit

Permalink
feat(common): add "targetSelector" to onFilterChanged & Grid State
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Nov 12, 2022
1 parent f90be79 commit cd9bec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cypress/e2e/example05.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ describe('Example 5 - OData Grid', () => {

cy.window().then((win) => {
expect(win.console.log).to.have.callCount(2);
expect(win.console.log).to.be.calledWith('Client sample, Grid State changed:: ', { newValues: [{ columnId: 'name', operator: 'Contains', searchTerms: ['x'] }], type: 'filter' });
expect(win.console.log).to.be.calledWith('Client sample, Grid State changed:: ', { newValues: [{ columnId: 'name', operator: 'Contains', searchTerms: ['x'], targetSelector: 'input.form-control.filter-name.compound-input' }], type: 'filter' });
expect(win.console.log).to.be.calledWith('Client sample, Grid State changed:: ', { newValues: { pageNumber: 1, pageSize: 10 }, type: 'pagination' });
});
});
Expand Down

0 comments on commit cd9bec4

Please sign in to comment.