Skip to content
Snippets Groups Projects
Commit 40d8abca authored by bruno's avatar bruno
Browse files

Tests page

parent c28b2e58
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@ import { Implementations } from './pages/implementations'
import { NotFound } from './pages/not-found'
import { Patterns } from './pages/patterns'
import { Reports } from './pages/reports'
import { Tests } from './pages/tests'
const Routes = () => {
return (
......@@ -23,6 +24,7 @@ const Routes = () => {
<Route path="/patterns" page={Patterns} name="patterns" />
<Route path="/implementations" page={Implementations} name="implementations" />
<Route path="/reports" page={Reports} name="reports" />
<Route path="/tests" page={Tests} name="tests" />
</Router>
)
}
......
export * from './tests'
import * as RTL from '@redwoodjs/testing/web'
import { Tests } from '.'
describe('Tests page', () => {
it('renders successfully', () => {
RTL.render(<Tests />)
RTL.screen.getByText('Tests')
RTL.screen.getByText(/contenido de tests/i)
})
})
import type { StoryObj } from '@storybook/react'
import { Tests } from '.'
export default {
component: Tests,
title: 'Tests page',
}
export const Default: StoryObj<typeof Tests> = {
render: () => <Tests />,
}
import React from 'react'
import { Text, Heading, Box } from '@chakra-ui/react'
export const Tests = () => {
return (
<Box>
<Heading as="h1" size="xl" mb="6">
Tests
</Heading>
<Text fontSize="lg" mb="4">
Contenido de tests
</Text>
</Box>
)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment