Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodDayForSurf committed Dec 26, 2024
1 parent 22bafab commit 644b3a8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions apps/demos/testing/widgets/charts/Export.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { createScreenshotsComparer } from 'devextreme-screenshot-comparer';
import { Selector as $ } from 'testcafe';
import { runManualTest } from '../../../utils/visual-tests/matrix-test-helper';
import { testScreenshot } from '../../../utils/visual-tests/helpers/theme-utils';

fixture('Charts.Export')
.page('http://localhost:8080/')
.before(async (ctx) => {
ctx.initialWindowSize = [900, 600];
});

runManualTest('Charts', 'ExportCustomMarkup', ['jQuery', 'React', 'Vue', 'Angular'], (test) => {
test('Export', async (t) => {
let dialogAppeared = false;

await t.setNativeDialogHandler(() => {
dialogAppeared = true;
return false;
});

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

await t.expect(dialogAppeared).ok('Save dialog should appear');
});
});

0 comments on commit 644b3a8

Please sign in to comment.