-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
π I have found these related issues/pull requests
I have found issue #5583, which is related, but it didnt make me any wiser
π‘οΈ Security Policy
- I have read and agree to Uptime Kuma's Security Policy.
π Description
The tests fail with the error expect(page.getByTestId("monitor-status")).toHaveText("up", { ignoreCase: true });. This indicates that the monitor is not up as expected. The issue seems to be related to the e2e test framework, as the tests fail even with a single comment line change in the code.
π Reproduction steps
Run the e2e tests with npm run test-e2e.
Also applies to automated tests at PR requests
π Expected behavior
The e2e tests should pass.
π Actual Behavior
The e2e tests fail with the error expect(page.getByTestId("monitor-status")).toHaveText("up", { ignoreCase: true });.
π» Uptime-Kuma Version
2.0.2
π» Operating System and Arch
Ubuntu 24.10
π Browser
Chromium 1.39.0 (via Playwright)
π₯οΈ Deployment Environment
- Runtime Environment:
- Node.js: Version
23.11.2(LTS: No)
- Node.js: Version
- Database:
- SQLite: Embedded
- Database Storage:
- Filesystem:
- Linux: ext4
- Storage Medium: NVMe
- Filesystem:
- Uptime Kuma Setup:
- Number of monitors:
1
- Number of monitors:
π Relevant log output
Running 16 tests using 1 worker β
[WebServer] 2025-12-17T14:43:34+01:00 [MONITOR] WARN: Monitor #1 'New Monitor': Pending: Group empty | Max retries: 0 | Retry: 0 β
| Retry Interval: 60 seconds | Type: group β
[WebServer] 2025-12-17T14:43:51+01:00 [MONITOR] WARN: Monitor #1 'Example DNS NS': Failing: Servers: hera.ns.cloudflare.com | β
elliott.ns.cloudflare.com | Interval: 60 seconds | Type: dns | Down Count: 0 | Resend Interval: 0 β
1) [specs] βΊ monitor-form.spec.js:48:9 βΊ Monitor Form βΊ successful condition βββββββββββββββββββββ β
β
Error: expect(locator).toHaveText(expected) β
β
Locator: getByTestId('monitor-status') β
Expected string: "up" β
Received string: "Down" β
Call log: β
- expect.toHaveText with timeout 5000ms β
- waiting for getByTestId('monitor-status') β
- locator resolved to <span data-v-f6ec8efa="" data-testid="monitor-status" β¦>Unknown</span> β
- unexpected value "Unknown" β
- locator resolved to <span data-v-f6ec8efa="" data-testid="monitor-status" β¦>Down</span> β
- unexpected value "Down" β
- locator resolved to <span data-v-f6ec8efa="" data-testid="monitor-status" β¦>Down</span> β
- unexpected value "Down" β
β
β
74 | await page.waitForURL("/dashboard/*"); β
75 | β
> 76 | expect(page.getByTestId("monitor-status")).toHaveText("up", { ignoreCase: true }); β
| ^ β
77 | β
78 | await screenshot(testInfo, page); β
79 | }); β
β
at /home/eigilb/Public/uptime-kuma-dev/test/e2e/specs/monitor-form.spec.js:76:52 β
β
[WebServer] 2025-12-17T14:44:02+01:00 [MONITOR] WARN: Monitor #1 'Example DNS NS': Failing: Servers: hera.ns.cloudflare.com | β
elliott.ns.cloudflare.com | Interval: 60 seconds | Type: dns | Down Count: 0 | Resend Interval: 0 β
[WebServer] 2025-12-17T14:44:07+01:00 [MONITOR] WARN: Monitor #1 'Monitor for Status Page': Failing: Request failed with status β
code 404 | Interval: 60 seconds | Type: http | Down Count: 0 | Resend Interval: 0 β
1 failed β
[specs] βΊ monitor-form.spec.js:48:9 βΊ Monitor Form βΊ successful condition ββββββββββββββββββββββ β
15 passed (50.5s)Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working