Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
majakomel committed Apr 11, 2024
1 parent d8160f2 commit 4850bad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/countries.e2e.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ describe('Countries Page Tests', () => {
})

it('first region (Africa) is visible', () => {
cy.get(':nth-child(1) > h1')
cy.get(':nth-child(1) > h2')
.contains('Africa')
.should('be.visible')
})

it('clicking on region in menu scrolls down to the correct region', () => {
cy.get('a[href="#Europe"]').click({ force: true })
cy.get(':nth-child(4) > h1')
cy.get(':nth-child(4) > h2')
.contains('Europe')
.should('be.visible')
})
Expand Down
4 changes: 2 additions & 2 deletions pages/countries.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ const RegionHeaderAnchor = styled.div`
links bar when scrolling to the selected region. And the height of these
bars changes in the mobile layout. This has evolved to be a bad design
that needs to be replaced. */
height: 172px;
margin-top: -172px;
height: 140px;
margin-top: -140px;
@media(max-width: 768px) {
height: 375px;
margin-top: -375px;
Expand Down

0 comments on commit 4850bad

Please sign in to comment.