From e20fcee09665010c4c64f2a4e9d55f45664b9a0a Mon Sep 17 00:00:00 2001 From: bidoff Date: Mon, 19 Feb 2024 11:21:19 +0100 Subject: [PATCH] arreglar el despliegue y quitar error de los test --- package-lock.json | 6 ++++++ webapp/package.json | 1 + webapp/src/App.js | 11 +++++------ webapp/src/App.test.js | 2 +- webapp/src/index.js | 5 +++++ 5 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 package-lock.json diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..9bdaa85 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "wiq_es04c", + "lockfileVersion": 3, + "requires": true, + "packages": {} +} diff --git a/webapp/package.json b/webapp/package.json index 74e31be..442d0f4 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -51,5 +51,6 @@ "puppeteer": "^21.7.0", "serve": "^14.2.1", "start-server-and-test": "^2.0.3" + } } diff --git a/webapp/src/App.js b/webapp/src/App.js index 0de25d2..1a0debd 100644 --- a/webapp/src/App.js +++ b/webapp/src/App.js @@ -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 ( + + - Welcome to the 2024 edition of the Software Architecture course + wiq_es04c {/* Aquí se muestra el componente GenerateQuestion */} - + -
); } diff --git a/webapp/src/App.test.js b/webapp/src/App.test.js index 5e3b731..85a0c1c 100644 --- a/webapp/src/App.test.js +++ b/webapp/src/App.test.js @@ -3,6 +3,6 @@ import App from './App'; test('renders learn react link', () => { render(); - 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(); }); diff --git a/webapp/src/index.js b/webapp/src/index.js index efa143b..4ac7ec6 100644 --- a/webapp/src/index.js +++ b/webapp/src/index.js @@ -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( @@ -14,6 +16,9 @@ root.render( + + + );