Navigate to the target URL, check the title and that JavaScript executes.
demosmoke version: 1.0 DEMO-001__homepage_loads.py group: Smoke
Runs
6
Pass rate
100%
6 passed / 0 failed
Avg duration
1s
p95 1s
Estimate
1s
avg of last 10 judged runs
Flakiness
0.00
0 stable · 1 alternates
Current streak
6
passed
Duration per run point color = outcome; dashed = 7-run average; click a point to open the run
Step timing trends the same step compared across the last 6 runs — slowest steps first, one line each
How long it takes distribution of 6 runs — two humps mean two different behaviours hiding behind one average
fastest 1s · slowest 1s
Why this test failed grouped by message, last 90 days
No failures recorded. 👍
Outcomes by target version
What this test does plain language, derived from the code
- Open the app's page
- ctx.log(f"loaded {page.url}")
- Take a screenshot (“homepage”)
- assert page.url.rstrip("/").startswith(ctx.base_url.rstrip("/")), (
- f"redirected away from the target: asked for {ctx.base_url}, "
- f"ended up at {page.url}")
- assert page.title(), "page has no title"
- ctx.log(f"title: {page.title()!r}")
- assert page.evaluate("1 + 1") == 2, "JavaScript did not execute"
Show the code
"""Homepage loads and renders.
The simplest possible smoke test: navigate to the target, prove we actually
landed there, and prove the page rendered and executed JavaScript.
"""
def run(page, ctx):
page.goto(ctx.base_url)
ctx.log(f"loaded {page.url}")
ctx.screenshot("homepage")
# Did we land where we asked? A site that bounces you to SSO, an error
# page or a maintenance notice still has a title and still runs JS, so
# without this check the rest of the test passes against the wrong page.
# (That is not hypothetical: with the hub's password gate switched on,
# this test used to pass while looking at the sign-in screen.)
assert page.url.rstrip("/").startswith(ctx.base_url.rstrip("/")), (
f"redirected away from the target: asked for {ctx.base_url}, "
f"ended up at {page.url}")
assert page.title(), "page has no title"
ctx.log(f"title: {page.title()!r}")
# Prove JS ran, not just that HTML arrived.
assert page.evaluate("1 + 1") == 2, "JavaScript did not execute"
All runs
| Run | Status | Queued | Duration | Version | Trigger | Batch |
|---|---|---|---|---|---|---|
| #494 | passed | 2026-09-25 09:00:11 | 1s | 3.0.0 | schedule | schedule: Smoke 09:00 |
| #484 | passed | 2026-09-25 06:57:10 | 1s | 3.0.0 | manual | DEMO-001 |
| #481 | passed | 2026-09-25 00:31:28 | 1s | 3.0.0 | group | group: Smoke |
| #451 | passed | 2026-09-25 00:25:05 | 1s | 3.0.0 | cli-adopted | 8 tests (terminal) |
| #443 | passed | 2026-09-25 00:24:35 | 1s | 3.0.0 | cli-adopted | 8 tests (terminal) |
| #435 | passed | 2026-09-25 00:24:06 | 1s | 3.0.0 | cli-adopted | 8 tests (terminal) |