diff --git a/packages/grid/data-grid/src/tests/filtering.DataGrid.test.tsx b/packages/grid/data-grid/src/tests/filtering.DataGrid.test.tsx
index 21cc2ecb7514c..38cb88af319fa 100644
--- a/packages/grid/data-grid/src/tests/filtering.DataGrid.test.tsx
+++ b/packages/grid/data-grid/src/tests/filtering.DataGrid.test.tsx
@@ -188,9 +188,13 @@ describe(' - Filter', () => {
});
describe('Date operators', function test() {
- console.log('BROWSER agent: ', window.navigator.userAgent);
const isEdge = /Edg/.test(window.navigator.userAgent);
-
+ before(function before() {
+ if (isEdge) {
+ // We need to skip edge as it does not handle the date the same way as other browsers.
+ this.skip();
+ }
+ });
[
{ operator: 'is', value: new Date(2000, 11, 1), expected: ['12/1/2000'] },
{ operator: 'not', value: new Date(2000, 11, 1), expected: ['1/1/2001', '1/1/2002'] },
@@ -200,12 +204,6 @@ describe(' - Filter', () => {
{ operator: 'onOrBefore', value: new Date(2001, 0, 1), expected: ['12/1/2000', '1/1/2001'] },
].forEach(({ operator, value, expected }) => {
it(`should allow object as value and work with valueGetter, operator: ${operator}`, function dateOpsTest() {
- if (isEdge) {
- // We need to skip edge as it does not handle the date the same way as other browsers.
- this.skip();
- return;
- }
-
render(