plum-e2e 1.0.10 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/.claude/settings.local.json +16 -1
  2. package/.vscode/settings.json +10 -0
  3. package/README.md +151 -37
  4. package/backend/_scaffold/features/LoginPage.feature +45 -3
  5. package/backend/_scaffold/pages/HomepagePage.ts +7 -0
  6. package/backend/_scaffold/pages/LoginPage.ts +37 -13
  7. package/backend/_scaffold/step_definitions/HomepageSteps.ts +6 -0
  8. package/backend/_scaffold/step_definitions/LoginSteps.ts +30 -4
  9. package/backend/_scaffold/utils/browser.ts +33 -0
  10. package/backend/_scaffold/utils/hooks.ts +8 -29
  11. package/backend/_scaffold/utils/utils.ts +3 -9
  12. package/backend/config/scripts/create-settings.js +7 -14
  13. package/backend/config/scripts/create-step.mjs +268 -0
  14. package/backend/config/scripts/generate-report.js +31 -75
  15. package/backend/config/scripts/run-tests.js +19 -4
  16. package/backend/package-lock.json +56 -641
  17. package/backend/package.json +4 -1
  18. package/backend/routes/reports.routes.js +6 -10
  19. package/backend/services/envService.js +4 -10
  20. package/backend/services/reportService.js +70 -20
  21. package/backend/services/testService.js +99 -24
  22. package/backend/tsconfig.json +2 -2
  23. package/backend/websockets/socketHandler.js +12 -6
  24. package/bin/plum.js +49 -3
  25. package/frontend/package-lock.json +436 -135
  26. package/frontend/package.json +1 -1
  27. package/frontend/src/app.css +241 -6
  28. package/frontend/src/app.html +14 -1
  29. package/frontend/src/lib/api/reports.js +68 -0
  30. package/frontend/src/lib/api/schedules.js +64 -0
  31. package/frontend/src/lib/api/tests.js +41 -0
  32. package/frontend/src/lib/components/layout/Nav.svelte +304 -0
  33. package/frontend/src/lib/components/layout/PageShell.svelte +28 -0
  34. package/frontend/src/lib/components/layout/RunnerPanel.svelte +378 -0
  35. package/frontend/src/lib/components/ui/Badge.svelte +63 -0
  36. package/frontend/src/lib/components/ui/Button.svelte +117 -0
  37. package/frontend/src/lib/components/ui/Modal.svelte +140 -0
  38. package/frontend/src/lib/components/ui/Pagination.svelte +100 -0
  39. package/frontend/src/lib/components/ui/Terminal.svelte +100 -0
  40. package/frontend/src/lib/stores/runner.js +55 -0
  41. package/frontend/src/lib/stores/theme.js +47 -0
  42. package/frontend/src/routes/+layout.svelte +7 -12
  43. package/frontend/src/routes/+page.svelte +690 -142
  44. package/frontend/src/routes/reports/+page.svelte +395 -125
  45. package/frontend/src/routes/reports/[slug]/+page.svelte +749 -0
  46. package/frontend/src/routes/scheduled-tests/+page.svelte +267 -303
  47. package/frontend/svelte.config.js +1 -4
  48. package/frontend/tailwind.config.js +2 -23
  49. package/package.json +2 -2
  50. package/backend/_scaffold/utils/world.ts +0 -25
  51. package/frontend/src/routes/components/Navigation.svelte +0 -53
@@ -1,25 +0,0 @@
1
- import { IWorldOptions, setWorldConstructor, World } from '@cucumber/cucumber';
2
- import { Browser, Page, BrowserContext } from 'playwright';
3
- import { LoginPage } from '../pages/LoginPage';
4
- import { Utils } from './utils';
5
-
6
- export class CustomWorld extends World {
7
- browser!: Browser;
8
- context!: BrowserContext;
9
- page!: Page;
10
-
11
- loginPage!: LoginPage;
12
- utils!: Utils;
13
-
14
- constructor(options: IWorldOptions) {
15
- super(options);
16
- }
17
-
18
- initPages(page: Page) {
19
- this.utils = new Utils(page);
20
- this.loginPage = new LoginPage(page);
21
- // Add other pages here
22
- }
23
- }
24
-
25
- setWorldConstructor(CustomWorld);
@@ -1,53 +0,0 @@
1
- <!--
2
- * This file is part of Plum.
3
- *
4
- * Plum is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
8
- *
9
- * Plum is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU General Public License
15
- * along with Plum. If not, see https://www.gnu.org/licenses/.
16
- -->
17
-
18
- <div class="navbar bg-base-100">
19
- <div class="navbar-start">
20
- <div class="dropdown">
21
- <div tabindex="0" role="button" class="btn btn-ghost lg:hidden">
22
- <svg
23
- xmlns="http://www.w3.org/2000/svg"
24
- class="h-5 w-5"
25
- fill="none"
26
- viewBox="0 0 24 24"
27
- stroke="currentColor"
28
- >
29
- <path
30
- stroke-linecap="round"
31
- stroke-linejoin="round"
32
- stroke-width="2"
33
- d="M4 6h16M4 12h8m-8 6h16"
34
- />
35
- </svg>
36
- </div>
37
- <ul class="menu menu-sm dropdown-content bg-base-100 rounded-box z-[1] mt-3 w-52 p-2 shadow">
38
- <li><a href="/">Home</a></li>
39
- <li><a href="/reports">Reports</a></li>
40
- <li><a href="/scheduled-tests">Scheduled Tests</a></li>
41
- </ul>
42
- </div>
43
- <a href="/" class="btn btn-ghost text-xl">Plum</a>
44
- </div>
45
- <div class="navbar-center hidden lg:flex">
46
- <ul class="menu menu-horizontal px-1">
47
- <li><a href="/">Home</a></li>
48
- <li><a href="/reports">Reports</a></li>
49
- <li><a href="/scheduled-tests">Scheduled Tests</a></li>
50
- </ul>
51
- </div>
52
- <div class="navbar-end"></div>
53
- </div>