Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed Mar 19, 2024
1 parent d8f34c3 commit e52d126
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,10 +378,8 @@ test('View renders all fields', async () => {
screen.getByText(/With his brim pulled way down low/i),
).toBeInTheDocument();
//immagine di background
const backgroundImage = document.querySelector('.background-image');
expect(backgroundImage).toHaveStyle(
`background-image: url(http://localhost:3000/is-this-the-real-life/business-teamwork-join-hands-together-business-teamwork-concept_1150-1804.webp/@@images/image/huge);`,
);
const backgroundImage = document.querySelector('.background-image img');
expect(backgroundImage).toBeInTheDocument();
//link ad altro
expect(
screen.getByRole('link', {
Expand Down

0 comments on commit e52d126

Please sign in to comment.