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 e20fcee
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@
"puppeteer": "^21.7.0",
"serve": "^14.2.1",
"start-server-and-test": "^2.0.3"

}
}
11 changes: 5 additions & 6 deletions webapp/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,24 @@ function App() {
export default App; */
import React from 'react';
import GenerateQuestion from './components/GenerateQuestion'; // Asegúrate de importar GenerateQuestion correctamente
import Login from './components/Login';
import CssBaseline from '@mui/material/CssBaseline';
import Container from '@mui/material/Container';
import Typography from '@mui/material/Typography';
import Footer from './components/Footer';

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 e20fcee

Please sign in to comment.