feat: Implement email/password and X OAuth authentication, replacing the dev-login mechanism.
This commit is contained in:
@@ -19,15 +19,17 @@ 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 in one mention/);
|
||||
assert.match(html, /From X Article to audiobook/);
|
||||
assert.match(html, /id="how"/);
|
||||
assert.match(html, /id="pricing"/);
|
||||
});
|
||||
|
||||
test("login page renders username form", () => {
|
||||
test("login page renders email and x auth forms", () => {
|
||||
const html = renderLoginPage({ returnTo: "/audio/1" });
|
||||
assert.match(html, /action="\/auth\/dev-login"/);
|
||||
assert.match(html, /name="userId"/);
|
||||
assert.match(html, /action="\/auth\/x"/);
|
||||
assert.match(html, /action="\/auth\/email\/sign-in"/);
|
||||
assert.match(html, /action="\/auth\/email\/sign-up"/);
|
||||
assert.match(html, /name="email"/);
|
||||
assert.match(html, /value="\/audio\/1"/);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user