Skip to content

Commit ce0f59e

Browse files
authored
fix(website): fix flaky e2e test blocking production deploys (#38)
* fix(deploy): rewrite base href per example so assets resolve to correct subpath Production Angular examples at examples.stream-resource.dev returned 404 for main.js, styles.css, and chunks. Root cause: all index.html files had <base href="/"> so asset URLs resolved to the domain root instead of /{product}/{topic}/. Fix: assemble script now rewrites base href to the correct subpath for each example. * fix(website): use .first() on form locator to handle multiple forms on pricing page
1 parent 6489474 commit ce0f59e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/website/e2e/website.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ test('pricing page shows 4 plan cards', async ({ page }) => {
2828
test('pricing page lead form validates required fields', async ({ page }) => {
2929
await page.goto('/pricing');
3030
await page.click('button[type="submit"]');
31-
await expect(page.locator('form')).toBeVisible();
31+
await expect(page.locator('form').first()).toBeVisible();
3232
});
3333

3434
test('docs page renders sidebar and content', async ({ page }) => {

0 commit comments

Comments
 (0)