Skip to content

Commit 8ead16c

Browse files
mcollinaclaude
andcommitted
fix: use regex pattern for version check in E2E test
Replace hardcoded version '3.15.0' with regex pattern to match any semver version, preventing test failures on version updates. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 67d7007 commit 8ead16c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/frontend/test/e2e/basic.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ test.describe('Basic E2E tests', () => {
4747
await expect(page.getByText('composer')).toHaveCount(1)
4848
await expect(page.getByText('gateway')).toHaveCount(1)
4949
await expect(page.getByText('RUNNING')).toBeVisible()
50-
await expect(page.getByText('3.15.0')).toBeVisible()
50+
await expect(page.getByText(/^\d+\.\d+\.\d+$/)).toBeVisible()
5151
await expect(page.getByText('http://127.0.0.1:5042')).toBeVisible()
5252

5353
const metricCharts = page.getByTestId('metric-chart')

0 commit comments

Comments
 (0)