diff options
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/e2e/utils.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/e2e/utils.ts b/gui/e2e/utils.ts index 1d9cf957b6..e3fd856caf 100644 --- a/gui/e2e/utils.ts +++ b/gui/e2e/utils.ts @@ -62,7 +62,7 @@ const sendMockIpcResponse = async <T>({ channel, response }: SendMockIpcResponse ); }; -const _getStyleProperty = async (locator: Locator, property: string) => { +const getStyleProperty = async (locator: Locator, property: string) => { return locator.evaluate( (el, { property }) => { return window.getComputedStyle(el).getPropertyValue(property); @@ -72,11 +72,11 @@ const _getStyleProperty = async (locator: Locator, property: string) => { }; const getColor = async (locator: Locator) => { - return _getStyleProperty(locator, 'color'); + return getStyleProperty(locator, 'color'); }; const getBackgroundColor = async (locator: Locator) => { - return _getStyleProperty(locator, 'background-color'); + return getStyleProperty(locator, 'background-color'); }; export { startApp, mockIpcHandle, sendMockIpcResponse, getColor, getBackgroundColor }; |
