fix(electron): window only ui (#2926)

This commit is contained in:
Alex Yang authored and GitHub committed 2023-06-29 16:15:44 +00:00
1 parent 8021efd81a
commit 8a7908c692
5 files changed
+42 -4

No files matched your search

+9
View File
@@ -140,3 +140,12 @@ test('affine onboarding button', async ({ page }) => {
expect(await onboardingModal.isVisible()).toEqual(false);
});
test('windows only check', async ({ page }) => {
const windowOnlyUI = page.locator('[data-platform-target=win32]');
if (process.platform === 'win32') {
await expect(windowOnlyUI).toBeVisible();
} else {
await expect(windowOnlyUI).not.toBeVisible();
}
});