mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-23 04:51:49 +08:00
fix(core): desktop e2e (#15062)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Sign-in flows now reliably propagate richer authentication results (user data and session type), improving persistence and reducing intermittent sign-in issues. * Native token handling gains a fallback for environments without encrypted storage, improving session reliability. * **New Features** * User-visible warning when sign-in is session-only because encrypted storage is unavailable. * **Chores** * Tooling ignore patterns updated to exclude .codex. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -42,10 +42,11 @@ async function enableEmojiDocIcon(page: Page) {
|
||||
await confirmExperimentalPrompt(page);
|
||||
|
||||
const settingModal = page.locator('[data-testid=setting-modal-content]');
|
||||
const item = settingModal.locator('div').getByText('Emoji Doc Icon');
|
||||
await item.waitFor({ state: 'attached' });
|
||||
await expect(item).toBeVisible();
|
||||
const button = item.locator('label');
|
||||
const button = settingModal.getByTestId('enable_emoji_doc_icon');
|
||||
if (!(await button.isVisible().catch(() => false))) {
|
||||
await page.keyboard.press('Escape');
|
||||
return;
|
||||
}
|
||||
const isChecked = await button.locator('input').isChecked();
|
||||
if (!isChecked) {
|
||||
await button.click();
|
||||
|
||||
Reference in New Issue
Block a user