From d82e0db951404681b86872c2054f872902f0e1e9 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Tue, 8 Oct 2024 08:36:32 -0600 Subject: [PATCH] refactor invite link & add test --- playwright.config-local.ts | 4 +-- src/components/InviteDialog.vue | 17 ++++++------ src/views/ContactsView.vue | 3 ++- src/views/InviteOneView.vue | 29 +++++++++++--------- test-playwright/00-noid-tests.spec.ts | 6 ++--- test-playwright/05-invite.spec.ts | 32 +++++++++++++++++++++++ test-playwright/20-create-project.spec.ts | 2 +- test-playwright/testUtils.ts | 25 ++++++++++++------ 8 files changed, 81 insertions(+), 37 deletions(-) create mode 100644 test-playwright/05-invite.spec.ts diff --git a/playwright.config-local.ts b/playwright.config-local.ts index 323c64118..73c78b7d4 100644 --- a/playwright.config-local.ts +++ b/playwright.config-local.ts @@ -74,7 +74,7 @@ export default defineConfig({ /* Configure global timeout; default is 30000 milliseconds */ // the image upload will often not succeed at 5 seconds - // timeout: 5000, + // timeout: 10000, /* Run your local dev server before starting the tests */ /** @@ -91,7 +91,7 @@ export default defineConfig({ */ webServer: { command: - "VITE_PASSKEYS_ENABLED=true VITE_DEFAULT_ENDORSER_API_SERVER=http://localhost:3000 npm run dev", + "VITE_APP_SERVER=http://localhost:8080 VITE_DEFAULT_ENDORSER_API_SERVER=http://localhost:3000 VITE_PASSKEYS_ENABLED=true npm run dev", url: "http://localhost:8080", reuseExistingServer: !process.env.CI, }, diff --git a/src/components/InviteDialog.vue b/src/components/InviteDialog.vue index b514608bf..e79c0eb72 100644 --- a/src/components/InviteDialog.vue +++ b/src/components/InviteDialog.vue @@ -1,12 +1,14 @@