Skip to main content
Version: 1.x

Variable: authTest

const authTest: TestType<PlaywrightTestArgs & PlaywrightTestOptions & AuthFixtures & AuthFixtureOptions, PlaywrightWorkerArgs & PlaywrightWorkerOptions & AuthDeps>

Defined in: src/fixtures/auth-fixtures.ts:143

Ai

Auth test object with sapAuth handler and sapAuthConfig option.

Ai Context

Use to access the SAP auth handler for login/logout operations.

Remarks

Extends @playwright/test base with auth fixtures:

  • pramanConfig — placeholder for coreTest cross-fixture dep (PW-MERGE-1)
  • sapAuthConfig — fixture option with empty defaults
  • sapAuth — creates SAPAuthHandler with auto-detected or explicit strategy

NOTE: No auto-login — test setup projects call handler.login() explicitly. NOTE: No auto-logout — session managed by setup project (D28 pattern).

Example

import { authTest } from '#fixtures/auth-fixtures.js';

authTest('authenticates to SAP', async ({ sapAuth, page }) => {
await sapAuth.login(page, { url: '...', username: '...', password: '...' });
});