From c567e8eb8ea172c32f49f39432075413dbf39698 Mon Sep 17 00:00:00 2001 From: Shaun Date: Sat, 31 Aug 2024 20:20:55 -0400 Subject: [PATCH] Status Page E2E spec (#5068) --- config/playwright.config.js | 2 +- src/components/MonitorList.vue | 2 +- src/components/PublicGroupList.vue | 11 +-- src/components/TagsManager.vue | 5 ++ src/pages/AddStatusPage.vue | 6 +- src/pages/EditMonitor.vue | 2 +- src/pages/StatusPage.vue | 51 ++++++------ test/e2e/specs/example.spec.js | 25 +++--- test/e2e/specs/status-page.spec.js | 129 +++++++++++++++++++++++++++++ 9 files changed, 185 insertions(+), 48 deletions(-) create mode 100644 test/e2e/specs/status-page.spec.js diff --git a/config/playwright.config.js b/config/playwright.config.js index 0e186f3b5..5c574eecc 100644 --- a/config/playwright.config.js +++ b/config/playwright.config.js @@ -58,7 +58,7 @@ export default defineConfig({ // Run your local dev server before starting the tests. webServer: { - command: `node extra/remove-playwright-test-data.js && node server/server.js --port=${port} --data-dir=./data/playwright-test`, + command: `node extra/remove-playwright-test-data.js && cross-env NODE_ENV=development node server/server.js --port=${port} --data-dir=./data/playwright-test`, url, reuseExistingServer: false, cwd: "../", diff --git a/src/components/MonitorList.vue b/src/components/MonitorList.vue index b9d42048b..a579316b3 100644 --- a/src/components/MonitorList.vue +++ b/src/components/MonitorList.vue @@ -45,7 +45,7 @@ -
+
{{ $t("No Monitors, please") }} {{ $t("add one") }}
diff --git a/src/components/PublicGroupList.vue b/src/components/PublicGroupList.vue index 48379a7cc..c5d7d4500 100644 --- a/src/components/PublicGroupList.vue +++ b/src/components/PublicGroupList.vue @@ -7,12 +7,12 @@ :animation="100" >