fix(electron): set client border style to false by default on windows (#3960)

Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
Sarvesh Kumar.A
2023-08-27 01:56:48 +05:30
committed by GitHub
parent 54607aed6f
commit 118165bf72
7 changed files with 25 additions and 8 deletions

View File

@@ -1,5 +1,6 @@
import { platform } from 'node:os';
import { clickSideBarSettingButton } from '@affine-test/kit/utils/sidebar';
import { expect } from '@playwright/test';
import { test } from './fixture';
@@ -80,6 +81,19 @@ if (platform() === 'darwin') {
});
}
test('clientBorder value should disable by default on window', async ({
page,
}) => {
await clickSideBarSettingButton(page);
await page.waitForTimeout(1000);
const settingItem = page.locator(
'[data-testid="client-border-style-trigger"]'
);
expect(await settingItem.locator('input').inputValue()).toEqual(
process.platform === 'win32' ? 'off' : 'on'
);
});
test('app theme', async ({ page, electronApp }) => {
const root = page.locator('html');
{