Skip to content

Commit

Permalink
arreglar el despliegue y quitar error de los test
Browse files Browse the repository at this point in the history
  • Loading branch information
bidof committed Feb 19, 2024
1 parent 03661ae commit 4a14b69
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
8 changes: 5 additions & 3 deletions webapp/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,21 @@ import CssBaseline from '@mui/material/CssBaseline';
import Container from '@mui/material/Container';
import Typography from '@mui/material/Typography';
import Footer from './components/Footer';
import NavBar from './components/NavBar';
function App() {
return (

<Container component="main" maxWidth="xs">
<CssBaseline />


<Typography component="h1" variant="h5" align="center" sx={{ marginTop: 2 }}>
Welcome to the 2024 edition of the Software Architecture course
wiq_es04c
</Typography>
{/* Aquí se muestra el componente GenerateQuestion */}

<GenerateQuestion />


<Footer> </Footer>
</Container>
);
}
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/App.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import App from './App';

test('renders learn react link', () => {
render(<App />);
const linkElement = screen.getByText(/Welcome to the 2024 edition of the Software Architecture course/i);
const linkElement = screen.getByText(/wiq_es04c/i);
expect(linkElement).toBeInTheDocument();
});
5 changes: 5 additions & 0 deletions webapp/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import App from './App';
import reportWebVitals from './reportWebVitals';
/*funcion q representa la barra de navegacion superior*/
import Navbar from './components/NavBar';
import Footer from './components/Footer';

const root = ReactDOM.createRoot(document.getElementById('root'));

root.render(
Expand All @@ -14,6 +16,9 @@ root.render(

<App />


<Footer> </Footer>

</React.StrictMode>
);

Expand Down

0 comments on commit 4a14b69

Please sign in to comment.