refactor(automation): remove browser automation, use OS-level automation only

This commit is contained in:
2025-11-22 17:57:35 +01:00
parent 99fa06e12b
commit 84800c663a
44 changed files with 110 additions and 5125 deletions

View File

@@ -181,7 +181,7 @@ describe('MockBrowserAutomationAdapter Integration Tests', () => {
const result = await adapter.executeStep(stepId, config);
expect(result.success).toBe(true);
expect(result.stepId).toBe(1);
expect(result.metadata?.stepId).toBe(1);
});
it('should execute step 6 (modal step)', async () => {
@@ -195,8 +195,8 @@ describe('MockBrowserAutomationAdapter Integration Tests', () => {
const result = await adapter.executeStep(stepId, config);
expect(result.success).toBe(true);
expect(result.stepId).toBe(6);
expect(result.wasModalStep).toBe(true);
expect(result.metadata?.stepId).toBe(6);
expect(result.metadata?.wasModalStep).toBe(true);
});
it('should execute step 18 (final step)', async () => {
@@ -210,8 +210,8 @@ describe('MockBrowserAutomationAdapter Integration Tests', () => {
const result = await adapter.executeStep(stepId, config);
expect(result.success).toBe(true);
expect(result.stepId).toBe(18);
expect(result.shouldStop).toBe(true);
expect(result.metadata?.stepId).toBe(18);
expect(result.metadata?.shouldStop).toBe(true);
});
it('should simulate realistic step execution times', async () => {
@@ -224,7 +224,7 @@ describe('MockBrowserAutomationAdapter Integration Tests', () => {
const result = await adapter.executeStep(stepId, config);
expect(result.executionTime).toBeGreaterThan(0);
expect(result.metadata?.executionTime).toBeGreaterThan(0);
});
});
@@ -274,9 +274,9 @@ describe('MockBrowserAutomationAdapter Integration Tests', () => {
const result = await adapter.executeStep(stepId, config);
expect(result.metrics).toBeDefined();
expect(result.metrics.totalDelay).toBeGreaterThan(0);
expect(result.metrics.operationCount).toBeGreaterThan(0);
expect(result.metadata).toBeDefined();
expect(result.metadata?.totalDelay).toBeGreaterThan(0);
expect(result.metadata?.operationCount).toBeGreaterThan(0);
});
});
});