feat(hero): la metáfora de marca sustituye al carrusel de dolores
This commit is contained in:
1 parent
bd16de2aa3
commit
a03b6c1f92
2 files changed
+17
-22
No files matched your search
@@ -25,9 +25,16 @@ describe('<Hero />', () => {
|
||||
const { container } = render(<Hero variant="editorial" />);
|
||||
expect(container.textContent).not.toMatch(/cupos|cohorte|generación fundadora/i);
|
||||
});
|
||||
it('mirrors the client\'s own words back in a rotating carousel', () => {
|
||||
render(<Hero variant="editorial" />);
|
||||
expect(screen.getByRole('group', { name: /lo que sienten nuestros clientes/i })).toBeInTheDocument();
|
||||
expect(screen.getByText(/Trabajo más y gano casi lo mismo/i)).toBeInTheDocument();
|
||||
it('does not pre-empt the Dolores section with its own copy', () => {
|
||||
const { container } = render(<Hero variant="editorial" />);
|
||||
// The hero used to rotate the same four quotes that Dolores renders in
|
||||
// full further down. Duplicating them spent the emotional beat early and
|
||||
// competed with the headline.
|
||||
expect(container.textContent).not.toMatch(/Trabajo más y gano casi lo mismo/i);
|
||||
});
|
||||
|
||||
it('carries the brand metaphor as its visual anchor', () => {
|
||||
const { container } = render(<Hero variant="editorial" />);
|
||||
expect(container.querySelectorAll('svg').length).toBeGreaterThan(0);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user