fix ui auth forms and stabilize baseline tests
This commit is contained in:
@@ -19,7 +19,7 @@ test("shell includes daisyui and pwa tags", () => {
|
||||
|
||||
test("landing page renders hero and flow sections", () => {
|
||||
const html = renderLandingPage({ authenticated: false, userId: null });
|
||||
assert.match(html, /From X Article to audiobook/);
|
||||
assert.match(html, /Listen to X Articles/);
|
||||
assert.match(html, /id="how"/);
|
||||
assert.match(html, /id="pricing"/);
|
||||
});
|
||||
@@ -40,8 +40,8 @@ test("app page renders stats and forms", () => {
|
||||
jobs: [{ assetId: "1", status: "completed", article: { title: "Hello" }, creditsCharged: 1 }],
|
||||
});
|
||||
|
||||
assert.match(html, /Top up credits/);
|
||||
assert.match(html, /Simulate mention/);
|
||||
assert.match(html, /Top Up Credits/);
|
||||
assert.match(html, /Simulate Mention/);
|
||||
assert.match(html, /Hello/);
|
||||
});
|
||||
|
||||
@@ -52,5 +52,6 @@ test("audio page shows unlock action when payment is required", () => {
|
||||
userId: "u2",
|
||||
});
|
||||
|
||||
assert.match(html, /Pay 3 credits and unlock forever/);
|
||||
assert.match(html, /3 credits/);
|
||||
assert.match(html, /Pay & Listen/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user