feat: complete release preparation, 10+ ad mediation, CI/CD, and docker deployment
Some checks failed
CI Pipeline / Code Quality & Typecheck (push) Waiting to run
CI Pipeline / Test Suite (macos-latest) (push) Blocked by required conditions
CI Pipeline / Test Suite (ubuntu-latest) (push) Blocked by required conditions
CI Pipeline / Test Suite (windows-latest) (push) Blocked by required conditions
CI Pipeline / Build Validation (admin) (push) Blocked by required conditions
CI Pipeline / Build Validation (desktop) (push) Blocked by required conditions
Deploy Landing Page / deploy (push) Blocked by required conditions
Deploy Landing Page / build (push) Waiting to run
Release & Packaging Pipeline / Build & Publish Admin Docker Image (push) Failing after 8s
Release & Code Signing CA Pipeline / build-and-sign-windows (push) Failing after 1m51s
Build macOS / Build & Package (macOS) (push) Failing after 4s
Build macOS / Build & Package (macOS)-1 (push) Failing after 5s
Release & Code Signing CA Pipeline / build-and-sign-macos (push) Failing after 3s
Release & Packaging Pipeline / Package macOS Desktop App (push) Failing after 4s
Release & Packaging Pipeline / Package Windows Desktop App (push) Failing after 2m28s
Release & Packaging Pipeline / Publish Official GitHub Release (push) Has been skipped
Some checks failed
CI Pipeline / Code Quality & Typecheck (push) Waiting to run
CI Pipeline / Test Suite (macos-latest) (push) Blocked by required conditions
CI Pipeline / Test Suite (ubuntu-latest) (push) Blocked by required conditions
CI Pipeline / Test Suite (windows-latest) (push) Blocked by required conditions
CI Pipeline / Build Validation (admin) (push) Blocked by required conditions
CI Pipeline / Build Validation (desktop) (push) Blocked by required conditions
Deploy Landing Page / deploy (push) Blocked by required conditions
Deploy Landing Page / build (push) Waiting to run
Release & Packaging Pipeline / Build & Publish Admin Docker Image (push) Failing after 8s
Release & Code Signing CA Pipeline / build-and-sign-windows (push) Failing after 1m51s
Build macOS / Build & Package (macOS) (push) Failing after 4s
Build macOS / Build & Package (macOS)-1 (push) Failing after 5s
Release & Code Signing CA Pipeline / build-and-sign-macos (push) Failing after 3s
Release & Packaging Pipeline / Package macOS Desktop App (push) Failing after 4s
Release & Packaging Pipeline / Package Windows Desktop App (push) Failing after 2m28s
Release & Packaging Pipeline / Publish Official GitHub Release (push) Has been skipped
This commit is contained in:
parent
5cd1de6859
commit
708e20f747
406 changed files with 42464 additions and 6199 deletions
80
apps/desktop/tests/e2e/history.spec.ts
Normal file
80
apps/desktop/tests/e2e/history.spec.ts
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
import { test, expect, _electron as electron } from '@playwright/test';
|
||||
import path from 'path';
|
||||
|
||||
test.describe('History Page E2E', () => {
|
||||
let electronApp: any;
|
||||
let window: any;
|
||||
|
||||
test.beforeAll(async () => {
|
||||
electronApp = await electron.launch({
|
||||
args: ['out/main/index.js'],
|
||||
env: {
|
||||
...process.env,
|
||||
NODE_ENV: 'test',
|
||||
},
|
||||
recordVideo: {
|
||||
dir: 'test-results/videos/',
|
||||
size: { width: 1280, height: 720 }
|
||||
}
|
||||
});
|
||||
|
||||
// Wait for the main window to be ready
|
||||
let found = false;
|
||||
for (const w of electronApp.windows()) {
|
||||
await w.waitForLoadState('domcontentloaded');
|
||||
const t = await w.title();
|
||||
if (t === 'D3RO Voice' || t === 'd3ro-voice') {
|
||||
window = w;
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!found) {
|
||||
window = await electronApp.waitForEvent('window', {
|
||||
predicate: async (page) => {
|
||||
await page.waitForLoadState('domcontentloaded');
|
||||
const t = await page.title();
|
||||
return t === 'D3RO Voice' || t === 'd3ro-voice';
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Bypass onboarding using the injected IPC API
|
||||
await window.evaluate(async () => {
|
||||
if ((window as any).electronAPI) {
|
||||
await (window as any).electronAPI.config.set({ key: 'onboardingCompleted', value: true });
|
||||
await (window as any).electronAPI.config.set({ key: 'system.startupBackend', value: 'online' });
|
||||
}
|
||||
});
|
||||
|
||||
// Reload to apply the bypassed config
|
||||
await window.reload();
|
||||
await window.waitForLoadState('domcontentloaded');
|
||||
});
|
||||
|
||||
test.afterAll(async () => {
|
||||
if (electronApp) {
|
||||
await electronApp.close();
|
||||
}
|
||||
});
|
||||
|
||||
test('should clear all history', async () => {
|
||||
// Wait for Dashboard to load first
|
||||
await expect(window.locator('text=/^(Dashboard|대시보드)$/').first()).toBeVisible({ timeout: 10000 });
|
||||
|
||||
// Navigate to History Tab
|
||||
await window.locator('text=/^(History|히스토리|기록)$/').first().click();
|
||||
await expect(window.locator('text=/^(History|히스토리|변환 기록)$/').first()).toBeVisible();
|
||||
|
||||
// Look for a Clear All button (this should fail in TDD RED)
|
||||
const clearButton = window.getByTestId('clear-all-history-button');
|
||||
await expect(clearButton).toBeVisible();
|
||||
|
||||
// Click it and confirm
|
||||
await clearButton.click();
|
||||
|
||||
// Expect empty state to appear
|
||||
await expect(window.getByTestId('empty-state-card')).toBeVisible();
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue