generated from Arquisoft/wiq_0
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/Arquisoft/wiq_es04c into…
… develop
- Loading branch information
Showing
20 changed files
with
105 additions
and
130 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import { render, screen } from '@testing-library/react'; | ||
import React from 'react'; | ||
import { render, screen, fireEvent } from '@testing-library/react'; | ||
import App from './App'; | ||
|
||
test('renders learn react link', () => { | ||
render(<App />); | ||
const linkElement = screen.getByText(/WIQ_ES04C/i); | ||
expect(linkElement).toBeInTheDocument(); | ||
describe('App Component', () => { | ||
test('renders App component', () => { | ||
render(<App />); | ||
expect(screen.getByText(/Welcome to the 2024 edition of the Software Architecture course/i)).toBeInTheDocument(); | ||
}); | ||
}); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
webapp/src/components/Footer.js → webapp/src/components/footer/Footer.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react'; | ||
import { render, screen } from '@testing-library/react'; | ||
import Footer from './Footer'; | ||
|
||
describe('Footer Component', () => { | ||
test('renders footer with correct content and links', () => { | ||
// Renderizar el componente | ||
render(<Footer />); | ||
|
||
// Verificar que el texto "Trabajo de Arquitectura del Software" esté presente | ||
expect(screen.getByText('Trabajo de Arquitectura del Software')).toBeInTheDocument(); | ||
|
||
// Verificar que el enlace al Github del Proyecto esté presente con el atributo target="_blank" | ||
const githubLink = screen.getByRole('link', { name: /Github del Proyecto/i }); | ||
expect(githubLink).toBeInTheDocument(); | ||
expect(githubLink).toHaveAttribute('href', 'https://github.com/Arquisoft/wiq_es04c'); | ||
expect(githubLink).toHaveAttribute('target', '_blank'); | ||
expect(githubLink).toHaveAttribute('rel', 'noopener noreferrer'); | ||
|
||
// Verificar que el enlace a la Escuela de Ingeniería Informática esté presente con el atributo target="_blank" | ||
const schoolLink = screen.getByRole('link', { name: /Escuela de Ingeniería Informática/i }); | ||
expect(schoolLink).toBeInTheDocument(); | ||
expect(schoolLink).toHaveAttribute('href', 'https://ingenieriainformatica.uniovi.es'); | ||
expect(schoolLink).toHaveAttribute('target', '_blank'); | ||
expect(schoolLink).toHaveAttribute('rel', 'noopener noreferrer'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
webapp/src/components/NavBar.js → webapp/src/components/navbar/NavBar.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from 'react'; | ||
import { render, screen } from '@testing-library/react'; | ||
import Navbar from './Navbar'; | ||
|
||
describe('Navbar Component', () => { | ||
test('renders Navbar with correct content and links', () => { | ||
// Renderizar el componente | ||
render(<Navbar />); | ||
|
||
// Verificar que el logo esté presente | ||
const logo = screen.getByAltText('Logo'); | ||
expect(logo).toBeInTheDocument(); | ||
expect(logo).toHaveAttribute('src', '/LogoSaberYganar.png'); | ||
|
||
// Verificar que los enlaces de registro e inicio de sesión estén presentes con los íconos correctos | ||
const registerLink = screen.getByRole('link', { name: /Registrarse/i }); | ||
expect(registerLink).toBeInTheDocument(); | ||
expect(registerLink).toHaveAttribute('href', '/signup'); | ||
|
||
const loginLink = screen.getByRole('link', { name: /Iniciar sesión/i }); | ||
expect(loginLink).toBeInTheDocument(); | ||
expect(loginLink).toHaveAttribute('href', '/login'); | ||
|
||
// Verificar que los íconos estén presentes en los enlaces | ||
const registerIcon = screen.getByRole('link', { name: /Registrarse/i }).querySelector('i'); | ||
expect(registerIcon).toBeInTheDocument(); | ||
expect(registerIcon).toHaveClass('fas fa-sign-in-alt'); | ||
|
||
const loginIcon = screen.getByRole('link', { name: /Iniciar sesión/i }).querySelector('i'); | ||
expect(loginIcon).toBeInTheDocument(); | ||
expect(loginIcon).toHaveClass('fas fa-sign-in-alt'); | ||
}); | ||
}); |
File renamed without changes.