Skip to content

Commit db45271

Browse files
Add Call Kent guidance to contact page (#715)
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent f1bd575 commit db45271

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

app/routes/contact.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,16 @@ export default function ContactRoute() {
151151
<a href="mailto:support@egghead.io">support@egghead.io</a>
152152
{`) instead. I'll just forward your message to them anyway.`}
153153
</Paragraph>
154+
<div className="bg-secondary mt-6 rounded-lg p-4">
155+
<Paragraph>
156+
Have a general question? The best place is the{' '}
157+
<Link to="/calls" className="underline">
158+
Call Kent podcast
159+
</Link>
160+
. You can record your question or type it if you don&apos;t
161+
want to record yourself.
162+
</Paragraph>
163+
</div>
154164
</div>
155165

156166
<div className="col-span-full lg:col-span-8 lg:col-start-3">

e2e/contact.spec.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ test('Users can send an email', async ({ page, login }) => {
1818

1919
// verify name and email are prefilled
2020
const mainContent = page.getByRole('main')
21+
await expect(
22+
mainContent.getByText(
23+
/have a general question\? the best place is the call kent podcast\./i,
24+
),
25+
).toBeVisible()
26+
await expect(
27+
mainContent.getByRole('link', { name: /call kent podcast/i }),
28+
).toHaveAttribute('href', '/calls')
2129
await expect(mainContent.getByRole('textbox', { name: /name/i })).toHaveValue(
2230
user.firstName,
2331
)

0 commit comments

Comments
 (0)