From 189bfabcf88dad2bfe06bfbadf353e351831562e Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sat, 22 Mar 2025 15:15:17 -0600 Subject: [PATCH] add LogView for those cases where the log download doesn't work --- BUILDING.md | 4 +- src/router/index.ts | 5 ++ src/views/AccountViewView.vue | 31 +++++---- src/views/ContactQRScanShowView.vue | 4 +- src/views/LogView.vue | 98 +++++++++++++++++++++++++++++ test-playwright/TESTING.md | 8 ++- 6 files changed, 133 insertions(+), 17 deletions(-) create mode 100644 src/views/LogView.vue diff --git a/BUILDING.md b/BUILDING.md index fcf09dc01..9bfeb5501 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -329,10 +329,10 @@ The packaged application will be in `dist/TimeSafari` ## Testing -Run local tests: +Run all tests (requires XCode and Android Studio/device): ```bash -npm run test-local +npm run test-all ``` See [TESTING.md](test-playwright/TESTING.md) for more details. diff --git a/src/router/index.ts b/src/router/index.ts index b28aa8e39..a359a4844 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -157,6 +157,11 @@ const routes: Array = [ name: "InviteOneAcceptView", component: () => import("../views/InviteOneAcceptView.vue"), }, + { + path: "/logs", + name: "logs", + component: () => import("../views/LogView.vue"), + }, { path: "/new-activity", name: "new-activity", diff --git a/src/views/AccountViewView.vue b/src/views/AccountViewView.vue index d859d6484..33992fd65 100644 --- a/src/views/AccountViewView.vue +++ b/src/views/AccountViewView.vue @@ -562,11 +562,22 @@ Switch Identifier +
+ +
+

Import Contacts & Settings Database @@ -856,17 +867,6 @@

-
- -
-
@@ -912,6 +912,13 @@ />
+ + + View Logs + diff --git a/src/views/ContactQRScanShowView.vue b/src/views/ContactQRScanShowView.vue index e5431f272..f315e658c 100644 --- a/src/views/ContactQRScanShowView.vue +++ b/src/views/ContactQRScanShowView.vue @@ -5,9 +5,9 @@
-
+

diff --git a/src/views/LogView.vue b/src/views/LogView.vue new file mode 100644 index 000000000..57e4ce90f --- /dev/null +++ b/src/views/LogView.vue @@ -0,0 +1,98 @@ + + + + diff --git a/test-playwright/TESTING.md b/test-playwright/TESTING.md index 88b045e9f..477bedf7e 100644 --- a/test-playwright/TESTING.md +++ b/test-playwright/TESTING.md @@ -27,12 +27,18 @@ npx playwright install #### Full Test Suite -Run all local tests: +To run all tests, make sure XCode is started and either Android Studio is started or an Android device is connected. ```bash npm run test-all ``` +Run only web tests: + +```bash +npm run test:web +``` + Note: Tests may occasionally fail and succeed on rerun (especially if a different test fails). #### Single Test