Fix duplicate export declarations and migrate ContactsView with sub-components

- Remove duplicate NOTIFY_INVITE_MISSING and NOTIFY_INVITE_PROCESSING_ERROR exports
- Update InviteOneAcceptView.vue to use correct NOTIFY_INVITE_TRUNCATED_DATA constant
- Migrate ContactsView to PlatformServiceMixin and extract into modular sub-components
- Resolves TypeScript compilation errors preventing web build
This commit is contained in:
Matthew Raymer
2025-07-16 08:03:26 +00:00
parent 81a6c92068
commit 8dd73950f5
45 changed files with 3216 additions and 1752 deletions

View File

@@ -69,37 +69,14 @@ test('Check usage limits', async ({ page }) => {
// Import user 01
const did = await importUser(page, '01');
// Wait for the page to load
await page.waitForTimeout(2000);
// Verify that "Usage Limits" section is visible
await expect(page.locator('#sectionUsageLimits')).toBeVisible();
// Click "Recheck Limits" to trigger limits loading
await page.getByRole('button', { name: 'Recheck Limits' }).click();
// Wait for limits to load (either success or error message)
await page.waitForTimeout(3000);
const updatedUsageLimitsText = await page.locator('#sectionUsageLimits').textContent();
// Check if limits loaded successfully or show error message
const hasLimitsData = updatedUsageLimitsText?.includes('You have done') ||
updatedUsageLimitsText?.includes('You have uploaded') ||
updatedUsageLimitsText?.includes('No limits were found') ||
updatedUsageLimitsText?.includes('You have no identifier');
if (hasLimitsData) {
// Limits loaded successfully, continue with original test
await expect(page.locator('#sectionUsageLimits')).toContainText('You have done');
await expect(page.locator('#sectionUsageLimits')).toContainText('You have uploaded');
// These texts only appear when limits are successfully loaded
await expect(page.getByText('Your claims counter resets')).toBeVisible();
await expect(page.getByText('Your registration counter resets')).toBeVisible();
await expect(page.getByText('Your image counter resets')).toBeVisible();
}
// The Recheck Limits button should always be visible
await expect(page.locator('#sectionUsageLimits')).toContainText('You have done');
await expect(page.locator('#sectionUsageLimits')).toContainText('You have uploaded');
await expect(page.getByText('Your claims counter resets')).toBeVisible();
await expect(page.getByText('Your registration counter resets')).toBeVisible();
await expect(page.getByText('Your image counter resets')).toBeVisible();
await expect(page.getByRole('button', { name: 'Recheck Limits' })).toBeVisible();
// Set name