Skip to content

Commit

Permalink
docs: Add MDX test for example-app-router-playground
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn committed Oct 16, 2024
1 parent 9c84314 commit fa341f3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/example-app-router-playground/tests/main.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,14 @@ it('can use `t.has` in a Server Component', async ({page}) => {
await expect(page.getByTestId('HasTitle')).toHaveText('true');
});

it('can render mdx content', async ({page}) => {
await page.goto('/about');
await page.getByRole('heading', {name: 'About'}).waitFor();

await page.goto('/de/about');
await page.getByRole('heading', {name: 'Über uns'}).waitFor();
});

describe('server actions', () => {
it('can use `getTranslations` in server actions', async ({page}) => {
await page.goto('/actions');
Expand Down

0 comments on commit fa341f3

Please sign in to comment.