From 1a2b7550822dc45d77c6881b2722e6a152701553 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Feb 2026 20:41:44 +0000 Subject: [PATCH 1/3] Initial plan From 7486e2f2bfa7254d5d8378c6f6f8f64e5c1129e6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Feb 2026 21:30:04 +0000 Subject: [PATCH 2/3] Add Playwright E2E tests and fix code issues Co-authored-by: makuchpatryk <19875907+makuchpatryk@users.noreply.github.com> --- .gitignore | 4 + i18n.config.ts | 2 + modules/game/components/FinishModal.vue | 2 +- modules/game/composables/useEventGame.ts | 1 - nuxt.config.ts | 3 +- package.json | 4 + playwright.config.ts | 27 ++++++ pnpm-lock.yaml | 38 ++++++++ tests/e2e/advanced.spec.ts | 118 +++++++++++++++++++++++ tests/e2e/fixtures.ts | 92 ++++++++++++++++++ tests/e2e/main.spec.ts | 91 +++++++++++++++++ 11 files changed, 378 insertions(+), 4 deletions(-) create mode 100644 playwright.config.ts create mode 100644 tests/e2e/advanced.spec.ts create mode 100644 tests/e2e/fixtures.ts create mode 100644 tests/e2e/main.spec.ts diff --git a/.gitignore b/.gitignore index 43345b6..5fd72b9 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,7 @@ logs .env .env.* !.env.example + +# Playwright +test-results/ +playwright-report/ diff --git a/i18n.config.ts b/i18n.config.ts index c8de7e7..0e211b3 100644 --- a/i18n.config.ts +++ b/i18n.config.ts @@ -13,6 +13,8 @@ export default defineI18nConfig(() => ({ PAUSE: "PAUSE", Move: "Move", Continue: "Continue", + "Back to menu": "Back to menu", + "Puzzle Complete!": "Puzzle Complete!", }, }, })); diff --git a/modules/game/components/FinishModal.vue b/modules/game/components/FinishModal.vue index 7cb615c..1527ba2 100644 --- a/modules/game/components/FinishModal.vue +++ b/modules/game/components/FinishModal.vue @@ -32,7 +32,7 @@ const submitHandler = () => { >