From 023c8f6321f387a7c32b347b7fdbd99e0fd7c73a Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sun, 15 Sep 2024 16:30:46 -0600 Subject: [PATCH] modify the settings to allow account-specific settings, eg. for "isRegistered" --- README.md | 11 ++- src/App.vue | 13 ++- src/components/FeedFilters.vue | 11 ++- src/components/GiftedDialog.vue | 10 +-- src/components/OfferDialog.vue | 10 +-- src/components/PhotoDialog.vue | 8 +- src/components/TopMessage.vue | 11 +-- src/components/UserNameDialog.vue | 9 +- .../World/components/objects/landmarks.js | 10 +-- src/db/index.ts | 84 +++++++++++++++++-- src/db/tables/settings.ts | 16 ++-- src/libs/endorserServer.ts | 6 +- src/libs/util.ts | 40 ++++----- src/test/index.ts | 14 ++-- src/views/AccountViewView.vue | 77 ++++++++--------- src/views/ClaimAddRawView.vue | 10 +-- src/views/ClaimView.vue | 12 ++- src/views/ConfirmGiftView.vue | 20 ++--- src/views/ContactAmountsView.vue | 10 +-- src/views/ContactGiftingView.vue | 10 +-- src/views/ContactImportView.vue | 7 +- src/views/ContactQRScanShowView.vue | 40 ++++----- src/views/ContactsView.vue | 26 +++--- src/views/DIDView.vue | 11 ++- src/views/DiscoverView.vue | 13 ++- src/views/GiftedDetailsView.vue | 10 +-- src/views/HomeView.vue | 50 +++++------ src/views/IdentitySwitcherView.vue | 13 ++- src/views/NewEditAccountView.vue | 11 ++- src/views/NewEditProjectView.vue | 10 +-- src/views/OfferDetailsView.vue | 10 +-- src/views/ProjectViewView.vue | 12 ++- src/views/ProjectsView.vue | 66 +++++++++++++-- src/views/QuickActionBvcBeginView.vue | 10 +-- src/views/QuickActionBvcEndView.vue | 10 +-- src/views/SearchAreaView.vue | 7 +- src/views/SeedBackupView.vue | 8 +- src/views/ShareMyContactInfoView.vue | 14 ++-- src/views/SharedPhotoView.vue | 7 +- src/views/StartView.vue | 8 +- src/views/TestView.vue | 10 +-- test-playwright/00-noid-tests.spec.ts | 13 ++- test-playwright/40-add-contact.spec.ts | 32 ++++++- test-playwright/testUtils.ts | 2 +- 44 files changed, 452 insertions(+), 340 deletions(-) diff --git a/README.md b/README.md index 190f93894..b80172823 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ It's possible to use the global test Endorser (ledger) server (but currently the -It's possible to run with a minimal set of data: the following starts with the bare minimum of test data (but currently the tests don't all succeed): +It's possible to run with a minimal set of data; the following starts with the bare minimum of test data: ``` rm ../endorser-ch-test-local.sqlite3 NODE_ENV=test-local npm run flyway migrate @@ -106,6 +106,15 @@ NODE_ENV=test-local npm run dev ``` +To run a single test with the screenshots, use the following: +``` +npx playwright test test-playwright/40-add-contact.spec.ts --trace on +``` + +... with the `-c playwright.config-local.ts` to get the same results as above. + + + ### Register new user on test server On the test server, User #0 has rights to register others, so you can start diff --git a/src/App.vue b/src/App.vue index e1a43ca66..0c2d5dc92 100644 --- a/src/App.vue +++ b/src/App.vue @@ -375,7 +375,10 @@