feat: playwright

This commit is contained in:
Ibrahima G. Coulibaly
2024-06-26 08:59:18 +01:00
parent 6e3804d2c7
commit 3f00335ade
10 changed files with 616 additions and 89 deletions

View File

@@ -0,0 +1,19 @@
import { Box, Stack, Typography } from '@mui/material';
interface ExampleProps {
title: string;
description: string;
}
export default function ToolInfo({ title, description }: ExampleProps) {
return (
<Stack direction={'row'} alignItems={'center'} spacing={2} mt={4}>
<Box>
<Typography mb={2} fontSize={30} color={'primary'}>
{title}
</Typography>
<Typography fontSize={20}>{description}</Typography>
</Box>
</Stack>
);
}

View File

@@ -54,6 +54,7 @@ export default function ToolTextInput({
fullWidth
multiline
rows={10}
inputProps={{ 'data-testid': 'text-input' }}
/>
<InputFooter handleCopy={handleCopy} handleImport={handleImportClick} />
<input

View File

@@ -40,7 +40,13 @@ export default function ToolTextResult({
return (
<Box>
<InputHeader title={title} />
<TextField value={value} fullWidth multiline rows={10} />
<TextField
value={value}
fullWidth
multiline
rows={10}
inputProps={{ 'data-testid': 'text-result' }}
/>
<ResultFooter handleCopy={handleCopy} handleDownload={handleDownload} />
</Box>
);