Skip to content

Commit

Permalink
fix & test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tucchhaa committed Jan 14, 2025
1 parent f8a6e27 commit a0c8072
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/demos/Demos/DataGrid/PopupEditing/Vue/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ import {
DxLookup,
DxForm,
} from 'devextreme-vue/data-grid';
import 'devextreme-vue/text-area';
import { DxItem } from 'devextreme-vue/form';
import { employees, states } from './data.ts';
Expand Down
25 changes: 25 additions & 0 deletions apps/demos/testing/widgets/datagrid/PopupEditing.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('DataGrid.PopupEditing')
.page('http://localhost:8080/')
.before(async (ctx) => {
ctx.initialWindowSize = [900, 600];
});

runManualTest('DataGrid', 'PopupEditing', ['jQuery', 'React', 'Vue', 'Angular'], (test) => {
test.only('PopupEditing', async (t) => {
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);

await testScreenshot(t, takeScreenshot, 'datagrid_popup_editing_1_desktop.png');

await t.click($('.dx-link-edit').nth(0));
await testScreenshot(t, takeScreenshot, 'datagrid_popup_editing_2_desktop.png');

await t
.expect(compareResults.isValid())
.ok(compareResults.errorMessages());
});
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a0c8072

Please sign in to comment.