Skip to content

Commit

Permalink
WIP. fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodDayForSurf committed Dec 27, 2024
1 parent 39e2988 commit 7a0f045
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/demos/testing/widgets/charts/Export.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,18 @@ runManualTest('Charts', 'ExportCustomMarkup', ['jQuery', 'React', 'Vue', 'Angula
test('Export', async (t) => {
let checkData = {downloadFileType: null};

await ClientFunction((checkData) => {
const checkFn = ClientFunction((checkData) => {
window.originalCreateObjectURL = URL.createObjectURL;

checkData.downloadFileType = 'blob.type';
URL.createObjectURL = (blob) => {

checkData.downloadFileType = blob.type;
return Promise.reject();
};
})(checkData);
});

await checkFn(checkData);

await t.click('#export,.dx-button[icon=export]');

Expand Down

0 comments on commit 7a0f045

Please sign in to comment.