From 1ae36d4b3e5a285fb0705b6203fabd83a7a4d83b Mon Sep 17 00:00:00 2001 From: fundon Date: Fri, 18 Apr 2025 03:53:51 +0000 Subject: [PATCH] fix(editor): remove redundant subtraction (#11781) --- tests/blocksuite/e2e/utils/asserts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/blocksuite/e2e/utils/asserts.ts b/tests/blocksuite/e2e/utils/asserts.ts index 8b112e2cb9..942ede1c09 100644 --- a/tests/blocksuite/e2e/utils/asserts.ts +++ b/tests/blocksuite/e2e/utils/asserts.ts @@ -962,7 +962,7 @@ export async function assertEdgelessColorSameWithHexColor( edgelessColor: string, hexColor: `#${string}` ) { - const themeColor = edgelessColor.startsWith('---') + const themeColor = edgelessColor.startsWith('--') ? await getCurrentThemeCSSPropertyValue(page, edgelessColor) : edgelessColor; expect(themeColor).toBeTruthy();