fix: migrate critical components causing test failures

- Fix ShareMyContactInfoView.vue mounted() method to use Active Identity façade
- Fix OnboardMeetingSetupView, OnboardMeetingMembersView, OnboardMeetingListView
- Fix ContactAmountsView to use new Active Identity system
- Replace all remaining settings?.activeDid usage with ()

These components were causing Playwright test failures due to
routing issues when activeDid was not found in legacy settings.
This commit is contained in:
Matthew Raymer
2025-08-22 11:04:43 +00:00
parent 63024f6e89
commit cf41665629
6 changed files with 11 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ export default defineConfig({
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
workers: 1,
workers: 4,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: [
['list'],

View File

@@ -224,7 +224,8 @@ export default class ContactAmountssView extends Vue {
this.contact = contact;
const settings = await this.$getSettings(MASTER_SETTINGS_KEY);
this.activeDid = settings?.activeDid || "";
// Use new Active Identity façade instead of settings.activeDid
this.activeDid = (await this.$getActiveDid()) || "";
this.apiServer = settings?.apiServer || "";
if (this.activeDid && this.contact) {

View File

@@ -174,7 +174,8 @@ export default class OnboardMeetingListView extends Vue {
// Load user account settings
const settings = await this.$accountSettings();
this.activeDid = settings?.activeDid || "";
// Use new Active Identity façade instead of settings.activeDid
this.activeDid = (await this.$getActiveDid()) || "";
this.apiServer = settings?.apiServer || "";
this.firstName = settings?.firstName || "";
this.isRegistered = !!settings?.isRegistered;

View File

@@ -106,7 +106,8 @@ export default class OnboardMeetingMembersView extends Vue {
return;
}
const settings = await this.$accountSettings();
this.activeDid = settings?.activeDid || "";
// Use new Active Identity façade instead of settings.activeDid
this.activeDid = (await this.$getActiveDid()) || "";
this.apiServer = settings?.apiServer || "";
this.firstName = settings?.firstName || "";
this.isRegistered = !!settings?.isRegistered;

View File

@@ -349,7 +349,8 @@ export default class OnboardMeetingView extends Vue {
this.$notify as Parameters<typeof createNotifyHelpers>[0],
);
const settings = await this.$accountSettings();
this.activeDid = settings?.activeDid || "";
// Use new Active Identity façade instead of settings.activeDid
this.activeDid = (await this.$getActiveDid()) || "";
this.apiServer = settings?.apiServer || "";
this.fullName = settings?.firstName || "";
this.isRegistered = !!settings?.isRegistered;

View File

@@ -76,7 +76,8 @@ export default class ShareMyContactInfoView extends Vue {
async mounted() {
const settings = await this.$settings();
const activeDid = settings?.activeDid;
// Use new Active Identity façade instead of settings.activeDid
const activeDid = await this.$getActiveDid();
if (!activeDid) {
this.$router.push({ name: "home" });
}