wip
This commit is contained in:
@@ -9,18 +9,19 @@ import * as path from 'path';
|
||||
* and runtime configuration via BrowserModeConfigLoader.
|
||||
*/
|
||||
|
||||
// Mock interfaces - will be replaced with actual imports in GREEN phase
|
||||
interface PlaywrightAutomationAdapter {
|
||||
type BrowserModeSource = 'env' | 'file' | 'default';
|
||||
|
||||
interface PlaywrightAutomationAdapterLike {
|
||||
connect(): Promise<{ success: boolean; error?: string }>;
|
||||
disconnect(): Promise<void>;
|
||||
isConnected(): boolean;
|
||||
getBrowserMode(): 'headed' | 'headless';
|
||||
getBrowserModeSource(): 'GUI' | 'NODE_ENV';
|
||||
getBrowserModeSource(): BrowserModeSource;
|
||||
}
|
||||
|
||||
describe('Browser Mode Integration - GREEN Phase', () => {
|
||||
const originalEnv = process.env;
|
||||
let adapter: PlaywrightAutomationAdapter | null = null;
|
||||
let adapter: PlaywrightAutomationAdapterLike | null = null;
|
||||
|
||||
beforeEach(() => {
|
||||
process.env = { ...originalEnv };
|
||||
|
||||
@@ -9,15 +9,8 @@ import { CheckoutStateEnum } from '../../../packages/domain/value-objects/Checko
|
||||
* Tests verify HTML parsing for checkout price extraction and state detection.
|
||||
*/
|
||||
|
||||
interface Page {
|
||||
locator(selector: string): Locator;
|
||||
}
|
||||
|
||||
interface Locator {
|
||||
getAttribute(name: string): Promise<string | null>;
|
||||
innerHTML(): Promise<string>;
|
||||
textContent(): Promise<string | null>;
|
||||
}
|
||||
type Page = ConstructorParameters<typeof CheckoutPriceExtractor>[0];
|
||||
type Locator = ReturnType<Page['locator']>;
|
||||
|
||||
describe('CheckoutPriceExtractor Integration', () => {
|
||||
let mockPage: Page;
|
||||
|
||||
Reference in New Issue
Block a user