diff --git a/cypress/integration/pages/index.spec.ts b/cypress/integration/pages/index.spec.ts index 8b5ec59b..dd0f683e 100644 --- a/cypress/integration/pages/index.spec.ts +++ b/cypress/integration/pages/index.spec.ts @@ -20,4 +20,24 @@ describe('Homepage', () => { cy.get('h1').should('be.visible').should('contain', 'How much am I'); }); + + it('footer is visible', () => { + cy.visit('/'); + + cy.get('footer') + .should('be.visible') + .contains('F.A.Q.') + .should('have.attr', 'href', '/faq') + .click(); + + cy.url().should('contain', 'faq'); + }); + + it('can click on a city', () => { + cy.visit('/'); + + cy.get('[data-cy-city=1]').click(); + + cy.url().should('match', /city\/\w+/); + }); }); diff --git a/src/components/RankingSection/RankingSection.tsx b/src/components/RankingSection/RankingSection.tsx index be7706c8..e1c4b55b 100644 --- a/src/components/RankingSection/RankingSection.tsx +++ b/src/components/RankingSection/RankingSection.tsx @@ -143,6 +143,7 @@ export function RankingSection(props: RankingSectionProps): React.ReactElement {
{cities.map((city, index) => (