Skip to content

Commit 0d2fc65

Browse files
authored
Stabilizing Editing test (#32964)
1 parent 546d7b1 commit 0d2fc65

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

  • e2e/testcafe-devextreme/tests/dataGrid/common/editing

e2e/testcafe-devextreme/tests/dataGrid/common/editing/functional.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2248,6 +2248,12 @@ fixture`Editing - ShowEditorAlways`
22482248
test('Cells should be focused correctly on click when cell editing mode is used with enabled showEditorAlways (T1037019)', async (t) => {
22492249
const dataGrid = new DataGrid('#container');
22502250

2251+
const getStoredName = ClientFunction((id: number) => (window as any).myStore
2252+
.byKey(id)
2253+
.then((item) => item.Name));
2254+
2255+
await t.expect(dataGrid.isReady()).ok();
2256+
22512257
// act
22522258
await t
22532259
.click(dataGrid.getDataCell(0, 0).getEditor().element);
@@ -2262,9 +2268,10 @@ test('Cells should be focused correctly on click when cell editing mode is used
22622268
// act
22632269
await t
22642270
.typeText(dataGrid.getDataCell(0, 0).getEditor().element, '1')
2265-
.wait(50)
22662271
.click(dataGrid.getDataCell(1, 0).getEditor().element);
22672272

2273+
await t.expect(getStoredName(1)).eql('Name 11');
2274+
22682275
// assert
22692276
await t
22702277
.expect(dataGrid.apiGetCellValue(0, 0))
@@ -2277,9 +2284,10 @@ test('Cells should be focused correctly on click when cell editing mode is used
22772284
// act
22782285
await t
22792286
.typeText(dataGrid.getDataCell(1, 0).getEditor().element, '2')
2280-
.wait(50)
22812287
.click(dataGrid.getDataCell(2, 0).getEditor().element);
22822288

2289+
await t.expect(getStoredName(2)).eql('Name 22');
2290+
22832291
// assert
22842292
await t
22852293
.expect(dataGrid.apiGetCellValue(1, 0))
@@ -2292,9 +2300,10 @@ test('Cells should be focused correctly on click when cell editing mode is used
22922300
// act
22932301
await t
22942302
.typeText(dataGrid.getDataCell(2, 0).getEditor().element, '3')
2295-
.wait(50)
22962303
.click(dataGrid.getDataCell(1, 0).getEditor().element);
22972304

2305+
await t.expect(getStoredName(3)).eql('Name 33');
2306+
22982307
// assert
22992308
await t
23002309
.expect(dataGrid.apiGetCellValue(2, 0))
@@ -2307,9 +2316,10 @@ test('Cells should be focused correctly on click when cell editing mode is used
23072316
// act
23082317
await t
23092318
.typeText(dataGrid.getDataCell(1, 0).getEditor().element, '2')
2310-
.wait(50)
23112319
.click(dataGrid.getDataCell(0, 0).getEditor().element);
23122320

2321+
await t.expect(getStoredName(2)).eql('Name 222');
2322+
23132323
// assert
23142324
await t
23152325
.expect(dataGrid.apiGetCellValue(1, 0))

0 commit comments

Comments
 (0)