test: standardize naming conventions to snake_case
- Rename demo_event_id → testing_event_id (more explicit) - Rename demo_account_id → testing_account_id (matches convention) - Rename demo_badge_id → event_badge_id (descriptive) - Rename demo_template_id → event_badge_template_id (explicit) - Update all test files for consistency (15 files) - Enhance README with organized test data sections - Update person IDs to match README test data - No regression: 15 tests passing, 7 pre-existing failures unchanged
This commit is contained in:
@@ -55,12 +55,12 @@ test.describe('V3 API Header Integrity (modernized)', () => {
|
||||
});
|
||||
|
||||
test('Verify Account ID Scavenging from localStorage on CRUD requests', async ({ page }) => {
|
||||
const testAccountId = 'scavenged-account-id-123';
|
||||
const test_account_id = '_XY7DXtc9MY'; // Per README test data
|
||||
|
||||
await page.addInitScript(({ defaults, id }) => {
|
||||
const testData = { ...defaults, account_id: id, manager_access: true };
|
||||
window.localStorage.setItem('ae_loc', JSON.stringify(testData));
|
||||
}, { defaults: ae_app_local_data_defaults, id: testAccountId });
|
||||
}, { defaults: ae_app_local_data_defaults, id: test_account_id });
|
||||
|
||||
const requestPromise = page.waitForRequest((request) => request.url().includes('/v3/crud/user/search'));
|
||||
|
||||
@@ -69,6 +69,6 @@ test.describe('V3 API Header Integrity (modernized)', () => {
|
||||
const request = await requestPromise;
|
||||
const headers = request.headers();
|
||||
|
||||
expect(headers['x-account-id']).toBe(testAccountId);
|
||||
expect(headers['x-account-id']).toBe(test_account_id);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user