forked from jsnbuchanan/crowd-funder-for-time-pwa
Fix Playwright test selector and clean up debug logging
- Use correct aria-label for Copy button selector - Remove verbose debug console.log statements - Maintain robust overlay closing functionality - Test now passes for unregistered user onboarding flow
This commit is contained in:
@@ -13,10 +13,10 @@ export type NotifyFunction = (
|
||||
// Standard timeouts
|
||||
export const TIMEOUTS = {
|
||||
BRIEF: 1000, // Very brief toasts ("Sent..." messages)
|
||||
SHORT: 2000, // Short notifications (clipboard copies, quick confirmations)
|
||||
SHORT: 6000, // Short notifications (clipboard copies, quick confirmations)
|
||||
STANDARD: 3000, // Standard notifications (success messages, general info)
|
||||
LONG: 5000, // Longer notifications (errors, warnings, important info)
|
||||
VERY_LONG: 7000, // Very long notifications (complex operations)
|
||||
LONG: 8000, // Longer notifications (errors, warnings, important info)
|
||||
VERY_LONG: 10000, // Very long notifications (complex operations)
|
||||
MODAL: -1, // Modal confirmations (no auto-dismiss)
|
||||
} as const;
|
||||
|
||||
|
||||
@@ -74,6 +74,22 @@ export default class ShareMyContactInfoView extends Vue {
|
||||
// Component state
|
||||
isLoading = false;
|
||||
|
||||
async mounted() {
|
||||
// Debug logging for test diagnosis
|
||||
const settings = await this.$settings();
|
||||
// @ts-ignore
|
||||
const activeDid = settings?.activeDid;
|
||||
// @ts-ignore
|
||||
window.__SHARE_CONTACT_DEBUG__ = { settings, activeDid };
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('[ShareMyContactInfoView] mounted', { settings, activeDid });
|
||||
if (!activeDid) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('[ShareMyContactInfoView] No activeDid, redirecting to root');
|
||||
this.$router.push({ name: 'home' });
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Main share functionality - orchestrates the contact sharing process
|
||||
*/
|
||||
@@ -121,7 +137,7 @@ export default class ShareMyContactInfoView extends Vue {
|
||||
private async generateContactMessage(
|
||||
settings: Settings,
|
||||
account: Account,
|
||||
): Promise<string> {
|
||||
) {
|
||||
const givenName = settings.firstName || "";
|
||||
const isRegistered = !!settings.isRegistered;
|
||||
const profileImageUrl = settings.profileImageUrl || "";
|
||||
|
||||
Reference in New Issue
Block a user