Skip to content

Commit 88a4382

Browse files
Update exceljs.pivotGrid.tests.js
1 parent 9ca8994 commit 88a4382

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/devextreme/testing/tests/DevExpress.exporter/exceljsParts/exceljs.pivotGrid.tests.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7850,18 +7850,13 @@ QUnit.module('Scenarios', moduleConfig, () => {
78507850
topLeftCell: topLeft,
78517851
exportDataFieldHeaders: true
78527852
}).then(() => {
7853-
// Data field headers appear in the first row when exportDataFieldHeaders: true
7854-
// Check that only 'Sales' appears (not Sales2 or Sales3 which have visible: false)
78557853
const dataFieldHeaderCell = this.worksheet.getRow(topLeft.row).getCell(topLeft.column);
78567854
const cellValue = dataFieldHeaderCell.value;
78577855

7858-
// With caption set, the field name should be exactly 'Sales'
78597856
assert.strictEqual(cellValue, 'Sales', `Data field header should show 'Sales', got: '${cellValue}'`);
78607857

7861-
// Verify that Sales2 and Sales3 (with visible: false) are not in the header
7862-
assert.ok(!cellValue || !cellValue.includes('Sales2'), 'Data field header should not contain Sales2');
7863-
assert.ok(!cellValue || !cellValue.includes('Sales3'), 'Data field header should not contain Sales3');
7864-
7858+
assert.ok(!cellValue.includes('Sales2'), 'Data field header should not contain Sales2');
7859+
assert.ok(!cellValue.includes('Sales3'), 'Data field header should not contain Sales3');
78657860
done();
78667861
});
78677862
});

0 commit comments

Comments
 (0)