forked from trent_larson/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:
@@ -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