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:
DarkSky
2026-06-01 23:54:41 +08:00
committed by GitHub
parent 7123595831
commit 38110de134
7 changed files with 79 additions and 19 deletions
+5 -4
View File
@@ -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();