From 85c93c060a09689db300e9f6f932a61f5f7b07e2 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Fri, 7 Feb 2025 14:29:32 -0700 Subject: [PATCH] fix display on a mobile device & mark slower tests --- src/views/ClaimView.vue | 3 +- src/views/NewEditProjectView.vue | 88 +++++++++---------- test-playwright/20-create-project.spec.ts | 1 - test-playwright/25-create-project-x10.spec.ts | 2 +- test-playwright/50-record-offer.spec.ts | 2 + 5 files changed, 49 insertions(+), 47 deletions(-) diff --git a/src/views/ClaimView.vue b/src/views/ClaimView.vue index e004c61a..0fd5de19 100644 --- a/src/views/ClaimView.vue +++ b/src/views/ClaimView.vue @@ -74,7 +74,8 @@
- Recorded {{ veriClaim.issuedAt?.replace(/T/, " ").replace(/Z/, " UTC") }} + Recorded + {{ veriClaim.issuedAt?.replace(/T/, " ").replace(/Z/, " UTC") }}
diff --git a/src/views/NewEditProjectView.vue b/src/views/NewEditProjectView.vue index 2ed4335e..fe2811ed 100644 --- a/src/views/NewEditProjectView.vue +++ b/src/views/NewEditProjectView.vue @@ -71,17 +71,17 @@ -
+
If you want to be contacted, be sure to include your contact information -- just remember that this information is public and saved in a public history.
-
+
{{ fullClaim.description?.length }}/5000 max. characters
@@ -89,55 +89,55 @@ v-model="fullClaim.url" placeholder="Website" autocapitalize="none" - class="block w-full rounded border border-slate-400 mb-4 px-3 py-2" + class="block w-full rounded border border-slate-400 mt-4 px-3 py-2" /> -
-
- Starts At +
+
+ Starts At + +
- - - - {{ zoneName }} - -
-
-
- Ends at +
+ + {{ zoneName }} time zone + +
+ +
+
+ Ends at +
+ +
- - - - {{ zoneName }} -
diff --git a/test-playwright/20-create-project.spec.ts b/test-playwright/20-create-project.spec.ts index 4127f11e..3a5d466b 100644 --- a/test-playwright/20-create-project.spec.ts +++ b/test-playwright/20-create-project.spec.ts @@ -2,7 +2,6 @@ import { test, expect } from '@playwright/test'; import { importUser } from './testUtils'; test('Create new project, then search for it', async ({ page }) => { - test.slow(); // Generate a random string of 16 characters let randomString = Math.random().toString(36).substring(2, 18); diff --git a/test-playwright/25-create-project-x10.spec.ts b/test-playwright/25-create-project-x10.spec.ts index 0d8094b5..44a40da1 100644 --- a/test-playwright/25-create-project-x10.spec.ts +++ b/test-playwright/25-create-project-x10.spec.ts @@ -2,7 +2,7 @@ import { test, expect } from '@playwright/test'; import { importUser, createUniqueStringsArray } from './testUtils'; test('Create 10 new projects', async ({ page }) => { - test.setTimeout(40000); // Set timeout longer since it often fails at 30 seconds + test.slow(); // Set timeout longer since it often fails at 30 seconds const projectCount = 10; diff --git a/test-playwright/50-record-offer.spec.ts b/test-playwright/50-record-offer.spec.ts index bfb6004d..4710fe41 100644 --- a/test-playwright/50-record-offer.spec.ts +++ b/test-playwright/50-record-offer.spec.ts @@ -2,6 +2,8 @@ import { test, expect } from '@playwright/test'; import { importUser } from './testUtils'; test('Record an offer', async ({ page }) => { + test.setTimeout(45000); + // Generate a random string of 3 characters, skipping the "0." at the beginning const randomString = Math.random().toString(36).substring(2, 5); // Standard title prefix