Skip to content

Commit 4889c2f

Browse files
Testcafe: revive tests after Chrome update (DevExpress#29645)
1 parent a673bf3 commit 4889c2f

File tree

60 files changed

+14
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+14
-6
lines changed

e2e/testcafe-devextreme/tests/navigation/contextMenu/common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ test('ContextMenu items render', async (t) => {
4343
.ok(compareResults.errorMessages());
4444
}).before(async () => {
4545
await appendElementTo('#container', 'div', 'contextMenu');
46-
await setAttribute('#container', 'class', 'dx-theme-generic-typography');
46+
await setAttribute('#container', 'class', `dx-theme-${process.env.theme?.split('.')[0]}-typography`);
4747
await setStyleAttribute(Selector('#container'), 'width: 300px; height: 200px;');
4848

49-
await insertStylesheetRulesToPage('.custom-class { border: 2px solid green !important; }');
49+
await insertStylesheetRulesToPage('.custom-class { box-shadow: 0 0 0 2px green !important; }');
5050

5151
const menuItems = [
5252
{ text: 'remove', icon: 'remove', items: [{ text: 'item_1' }, { text: 'item_2' }] },
-1.89 KB
-1.59 KB
-68 Bytes
-110 Bytes
-204 Bytes
-201 Bytes
-774 Bytes
-745 Bytes

e2e/testcafe-devextreme/tests/navigation/menu/common.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,7 @@ safeSizeTest('Menu delimiter appearance when orientation is horizontal', async (
212212
return createWidget('dxMenu', { items: menuItems }, '#container');
213213
});
214214

215-
// TODO Chrome133: skipped during chrome update
216-
// safeSizeTest(..., [500, 500])
217-
test.skip('Menu delimiter appearance when orientation is vertical', async (t) => {
215+
safeSizeTest('Menu delimiter appearance when orientation is vertical', async (t) => {
218216
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
219217
const menu = new Menu();
220218

@@ -251,7 +249,7 @@ test.skip('Menu delimiter appearance when orientation is vertical', async (t) =>
251249
await t
252250
.expect(compareResults.isValid())
253251
.ok(compareResults.errorMessages());
254-
}).before(async () => {
252+
}, [500, 500]).before(async () => {
255253
const menuItems = [{
256254
text: 'Video Players',
257255
}, {

0 commit comments

Comments
 (0)