fix logger

This commit is contained in:
2025-12-15 22:39:17 +01:00
parent 7a11daa878
commit 3b566c973d
110 changed files with 1413 additions and 903 deletions

View File

@@ -4,7 +4,7 @@ import { PlaywrightAuthSessionService } from '../../../../core/automation/infras
import type { PlaywrightBrowserSession } from '../../../../core/automation/infrastructure/adapters/automation/core/PlaywrightBrowserSession';
import type { SessionCookieStore } from '../../../../core/automation/infrastructure/adapters/automation/auth/SessionCookieStore';
import type { IPlaywrightAuthFlow } from '../../../../core/automation/infrastructure/adapters/automation/auth/PlaywrightAuthFlow';
import type { LoggerPort as ILogger } from '../../../../core/automation/application/ports/LoggerPort';
import type { LoggerPort as Logger } from '../../../../core/automation/application/ports/LoggerPort';
import { AuthenticationState } from '@gridpilot/automation/domain/value-objects/AuthenticationState';
import { Result } from '../../../../core/shared/result/Result';
@@ -14,7 +14,7 @@ describe('PlaywrightAuthSessionService.initiateLogin browser mode behaviour', ()
let mockBrowserSession: PlaywrightBrowserSession;
let mockCookieStore: SessionCookieStore;
let mockAuthFlow: IPlaywrightAuthFlow;
let mockLogger: ILogger;
let mockLogger: Logger;
let mockPage: Page;
beforeEach(() => {

View File

@@ -3,7 +3,7 @@ import type { Page, Locator } from 'playwright';
import { PlaywrightAuthSessionService } from '../../../../core/automation/infrastructure/adapters/automation/auth/PlaywrightAuthSessionService';
import { AuthenticationState } from '@gridpilot/automation/domain/value-objects/AuthenticationState';
import { BrowserAuthenticationState } from '@gridpilot/automation/domain/value-objects/BrowserAuthenticationState';
import type { LoggerPort as ILogger } from '../../../../core/automation/application/ports/LoggerPort';
import type { LoggerPort as Logger } from '../../../../core/automation/application/ports/LoggerPort';
import type { Result } from '../../../../core/shared/result/Result';
import type { PlaywrightBrowserSession } from '../../../../core/automation/infrastructure/adapters/automation/core/PlaywrightBrowserSession';
import type { SessionCookieStore } from '../../../../core/automation/infrastructure/adapters/automation/auth/SessionCookieStore';
@@ -16,7 +16,7 @@ describe('PlaywrightAuthSessionService.verifyPageAuthentication', () => {
hasAuthUi: boolean;
cookieState: AuthenticationState;
}) {
const mockLogger: ILogger = {
const mockLogger: Logger = {
debug: vi.fn(),
info: vi.fn(),
warn: vi.fn(),