Skip to content

Commit

Permalink
test: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
jajugoguma committed Dec 10, 2023
1 parent 795971c commit 4111ed6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/toast-ui.grid/cypress/integration/validation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,3 +529,14 @@ describe('should check the validation of cell - unique', () => {
cy.getCell(1, 'name').should('not.have.class', cls('cell-invalid'));
});
});

it('should validate properly after sort', () => {
cy.createGrid({
data,
columns: [{ name: 'name', validation: { required: true }, sortable: true }],
});

cy.gridInstance().invoke('sort', 'name', true);

cy.gridInstance().invoke('validate').should('be', []);
});

0 comments on commit 4111ed6

Please sign in to comment.