Skip to content
Snippets Groups Projects
Unverified Commit 33b812e7 authored by brunoravera's avatar brunoravera Committed by GitHub
Browse files

Merge pull request #3 from tesis-testing-microservicios/tests_page

Tests page
parents c28b2e58 40d8abca
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