Skip to content

Commit df5fc67

Browse files
Update employees-api tests with Profile Page token extraction and remove obsolete test
- Refactored employees-api.spec.ts to use getTokenFromProfile() for authentication - Added comprehensive API tests for all CRUD operations (GET, POST, PUT, DELETE) - Updated playwright.config.ts to exclude employees-api tests from headless API project - Removed obsolete TalentManagement.spec.ts file - Updated diagnostic screenshot
1 parent 26a5fe0 commit df5fc67

4 files changed

Lines changed: 246 additions & 199 deletions

File tree

diagnostic-screenshot.png

-15 KB
Loading

playwright.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,15 @@ export default defineConfig({
107107
},
108108

109109
// API Integration Tests (headless, faster)
110-
// Note: auth-api, cache-api, and departments-api tests require browser context, so they're excluded here
110+
// Note: auth-api, cache-api, departments-api, and employees-api tests require browser context, so they're excluded here
111111
{
112112
name: 'api',
113113
testMatch: /tests\/api\/.*\.spec\.ts/,
114114
testIgnore: [
115115
/tests\/api\/auth-api\.spec\.ts/, // Excluded: requires browser login
116116
/tests\/api\/cache-api\.spec\.ts/, // Excluded: requires browser login for token
117117
/tests\/api\/departments-api\.spec\.ts/, // Excluded: requires browser login for token
118+
/tests\/api\/employees-api\.spec\.ts/, // Excluded: requires browser login for token
118119
],
119120
use: {
120121
baseURL: 'https://localhost:44378/api/v1',

tests/TalentManagement.spec.ts

Lines changed: 0 additions & 150 deletions
This file was deleted.

0 commit comments

Comments
 (0)