Skip to content

Commit 1d0f04c

Browse files
authored
DateBox: allow page reload for label tests (#33475)
1 parent 4354dc4 commit 1d0f04c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • e2e/testcafe-devextreme/tests/editors/dateBox

e2e/testcafe-devextreme/tests/editors/dateBox/label.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const DATEBOX_CLASS = 'dx-datebox';
1414
const stylingModes = ['outlined', 'underlined', 'filled'];
1515
const visibleLabelModes = ['floating', 'static', 'outside'];
1616

17-
fixture.disablePageReloads`DateBox_Label`
17+
fixture`DateBox_Label`
1818
.page(url(__dirname, '../../container.html'));
1919

2020
test('Symbol parts in label should not be cropped', async (t) => {
@@ -48,12 +48,8 @@ test('Symbol parts in label should not be cropped', async (t) => {
4848
test('DateBox with buttons container', async (t) => {
4949
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
5050

51-
await insertStylesheetRulesToPage(`#container { display: flex; flex-wrap: wrap; } .${DATEBOX_CLASS} { width: 220px; margin: 2px; }`);
52-
5351
await testScreenshot(t, takeScreenshot, 'DateBox render with buttons container.png');
5452

55-
await removeStylesheetRulesFromPage();
56-
5753
await t
5854
.expect(compareResults.isValid())
5955
.ok(compareResults.errorMessages());
@@ -81,4 +77,8 @@ test('DateBox with buttons container', async (t) => {
8177
}
8278
}
8379
}
80+
81+
await insertStylesheetRulesToPage(`#container { display: flex; flex-wrap: wrap; } .${DATEBOX_CLASS} { width: 220px; margin: 2px; }`);
82+
}).after(async () => {
83+
await removeStylesheetRulesFromPage();
8484
});

0 commit comments

Comments
 (0)