Skip to content

Commit 5354909

Browse files
PivotGrid - Skip markup a11y tests on serverSide
1 parent 8a68780 commit 5354909

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

packages/devextreme/testing/tests/DevExpress.ui.widgets.pivotGrid/pivotGrid.markup.tests.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ QUnit.module('PivotGrid markup tests', () => {
101101
});
102102

103103
QUnit.test('Expandable td has aria-expanded reflecting expanded state', function(assert) {
104+
if(!windowUtils.hasWindow()) {
105+
assert.ok(true, 'skipped on serverSide');
106+
return;
107+
}
104108
const clock = sinon.useFakeTimers();
105109
try {
106110
const pivotGrid = createPivotGrid({ dataSource: createExpandableDataSource() });
@@ -119,6 +123,10 @@ QUnit.module('PivotGrid markup tests', () => {
119123
});
120124

121125
QUnit.test('Expandable td has tabindex="0"', function(assert) {
126+
if(!windowUtils.hasWindow()) {
127+
assert.ok(true, 'skipped on serverSide');
128+
return;
129+
}
122130
const clock = sinon.useFakeTimers();
123131
try {
124132
const pivotGrid = createPivotGrid({ dataSource: createExpandableDataSource() });
@@ -135,6 +143,10 @@ QUnit.module('PivotGrid markup tests', () => {
135143
});
136144

137145
QUnit.test('Non-expandable td has neither aria-expanded nor tabindex', function(assert) {
146+
if(!windowUtils.hasWindow()) {
147+
assert.ok(true, 'skipped on serverSide');
148+
return;
149+
}
138150
const clock = sinon.useFakeTimers();
139151
try {
140152
const pivotGrid = createPivotGrid({ dataSource: createExpandableDataSource() });

0 commit comments

Comments
 (0)