From edcfc620900cd5b74a9fc81c930ec36df5261d5d Mon Sep 17 00:00:00 2001 From: tongsonbarbs Date: Mon, 9 Dec 2024 13:50:08 +0800 Subject: [PATCH] avoid multiple change theme --- .../tests/dataGrid/accessibility/contrast.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/e2e/testcafe-devextreme/tests/dataGrid/accessibility/contrast.ts b/e2e/testcafe-devextreme/tests/dataGrid/accessibility/contrast.ts index 6ed96d58f3c..bb44ea2d2d9 100644 --- a/e2e/testcafe-devextreme/tests/dataGrid/accessibility/contrast.ts +++ b/e2e/testcafe-devextreme/tests/dataGrid/accessibility/contrast.ts @@ -40,6 +40,9 @@ fixture.disablePageReloads`DataGrid - contrast` }, ).after( async () => { + if (theme === Themes.genericLight) { + return; + } await changeTheme(Themes.genericLight); }, );