Adjust button hover
This commit is contained in:
@@ -92,13 +92,15 @@ describe("LogoWall Component", () => {
|
||||
expect(screen.getByAltText("Food Not Bombs")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
test("applies hover effects", () => {
|
||||
test("does not apply hover effects on partner logos", () => {
|
||||
render(<LogoWall />);
|
||||
|
||||
const logoContainers = document.querySelectorAll(
|
||||
'[class*="hover:opacity-100"]',
|
||||
);
|
||||
expect(logoContainers.length).toBeGreaterThan(0);
|
||||
expect(
|
||||
document.querySelectorAll('[class*="hover:opacity"]').length,
|
||||
).toBe(0);
|
||||
expect(
|
||||
document.querySelectorAll('[class*="hover:scale"]').length,
|
||||
).toBe(0);
|
||||
});
|
||||
|
||||
test("renders with proper semantic structure", () => {
|
||||
@@ -142,13 +144,4 @@ describe("LogoWall Component", () => {
|
||||
expect(foodNotBombsLogo).toBeInTheDocument();
|
||||
expect(startCoopLogo).toBeInTheDocument();
|
||||
});
|
||||
|
||||
test("applies scale effect on hover", () => {
|
||||
render(<LogoWall />);
|
||||
|
||||
const logos = screen.getAllByRole("img");
|
||||
logos.forEach((logo) => {
|
||||
expect(logo).toHaveClass("hover:scale-105");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user