From f7fd568c60353007791e85db059dfca6960b456b Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Fri, 29 Nov 2024 10:42:58 -0700 Subject: [PATCH] add tests for gives to & from projects --- CHANGELOG.md | 8 ++- playwright.config-local.ts | 2 +- src/views/ClaimView.vue | 3 +- src/views/ProjectViewView.vue | 6 +-- test-playwright/30-record-gift.spec.ts | 1 + test-playwright/33-record-gift-x10.spec.ts | 1 + .../35-record-gift-from-image-share.spec.ts | 2 +- .../37-record-gift-on-project.spec.ts | 50 +++++++++++++++++++ test-playwright/40-add-contact.spec.ts | 5 +- test-playwright/50-record-offer.spec.ts | 3 ++ test-playwright/testUtils.ts | 5 +- 11 files changed, 75 insertions(+), 11 deletions(-) create mode 100644 test-playwright/37-record-gift-on-project.spec.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 5218940..8f5de4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] +### Added +- Record a give from a project on the project page. +- Make unavailable and explain why on confirmation buttons on the project page gives. + + ## [0.3.36] - 2024.11.24 - c8d23647d165016f8a8f575e13d32583242e53ac ### Changed - More friendly default reminder message @@ -26,7 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.3.32] - 2024.11.06 - 9a3fa38a3fd28f977e06f0265fc39e635c9c5ccd ### Added -- Highlight new offers to user & to user's projects on the front page. +- Highlight in green new offers to user & to user's projects on the front page. ## [0.3.31] - 2024.10.25 - 07c02ab98a09d293dd90d9289a7872e7d681d296 diff --git a/playwright.config-local.ts b/playwright.config-local.ts index 0d48b5f..8fbfd15 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: 10000, + timeout: 25000, // various tests fail at various times with 20000 /* Run your local dev server before starting the tests */ /** diff --git a/src/views/ClaimView.vue b/src/views/ClaimView.vue index bb615d6..88cbadc 100644 --- a/src/views/ClaimView.vue +++ b/src/views/ClaimView.vue @@ -27,7 +27,8 @@ ['GiveAction', 'Offer', 'PlanAction'].includes( veriClaim.claimType as string, ) && veriClaim.issuer === activeDid - // a PlanAction agent also could edit one of those, but rather than add more Plan-specific logic to detect the agent + // a PlanAction agent also could edit one of those, + // but rather than add more Plan-specific logic to detect the agent // we'll let them click the Project link and edit from there " @click="onClickEditClaim" diff --git a/src/views/ProjectViewView.vue b/src/views/ProjectViewView.vue index 27b0ca5..5918695 100644 --- a/src/views/ProjectViewView.vue +++ b/src/views/ProjectViewView.vue @@ -300,7 +300,7 @@ -
+