mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-01 08:13:37 +00:00
feat: enhance OpenCode provider tests and UI setup
- Updated unit tests for OpenCode provider to include new authentication indicators. - Refactored ProvidersSetupStep component by removing unnecessary UI elements for better clarity. - Improved board background persistence tests by utilizing a setup function for initializing app state. - Enhanced settings synchronization tests to ensure proper handling of login and app state. These changes improve the testing framework and user interface for OpenCode integration, ensuring a smoother setup and authentication process.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
import { authenticateForTests } from '../utils';
|
||||
import { authenticateForTests, handleLoginScreenIfPresent } from '../utils';
|
||||
|
||||
const SETTINGS_PATH = path.resolve(process.cwd(), '../server/data/settings.json');
|
||||
const WORKSPACE_ROOT = path.resolve(process.cwd(), '../..');
|
||||
@@ -109,6 +109,8 @@ test.describe('Settings startup sync race', () => {
|
||||
// Ensure authenticated and app is loaded at least to welcome/board.
|
||||
await authenticateForTests(page);
|
||||
await page.goto('/');
|
||||
await page.waitForLoadState('load');
|
||||
await handleLoginScreenIfPresent(page);
|
||||
await page
|
||||
.locator('[data-testid="welcome-view"], [data-testid="board-view"]')
|
||||
.first()
|
||||
|
||||
Reference in New Issue
Block a user