feat: add native password and sms login

This commit is contained in:
2026-08-19 12:00:34 +08:00
parent abece81fdb
commit 5a048da8a6
9 changed files with 1539 additions and 859 deletions

View File

@@ -22,7 +22,7 @@ test.describe('Makelore Electron smoke flows', () => {
await expect(page.getByTestId('setup-skip-button')).toBeVisible();
});
test('can skip setup and open the public module chooser', async ({ page }) => {
test('can skip setup and open the native login surface', async ({ page }) => {
await expect(page.getByTestId('setup-page')).toBeVisible();
await page.getByTestId('setup-skip-button').click();
@@ -30,7 +30,12 @@ test.describe('Makelore Electron smoke flows', () => {
await expect(page.getByTestId('main-layout')).toHaveCount(0);
await page.getByTestId('ai-module-option-programming').click();
await expect(page.getByRole('button', { name: '在浏览器中继续' })).toBeVisible();
await expect(page.getByRole('tab', { name: '密码登录', exact: true })).toBeVisible();
await expect(page.getByRole('tab', { name: '密码登录', exact: true }))
.toHaveAttribute('aria-selected', 'true');
await expect(page.getByLabel('用户名', { exact: true })).toBeVisible();
await expect(page.getByLabel('密码', { exact: true })).toBeVisible();
await expect(page.getByRole('button', { name: '在浏览器中继续', exact: true })).toHaveCount(0);
});
test('persists skipped setup across relaunch for the same isolated profile', async ({ electronApp, launchElectronApp }) => {