text: /// <reference types="Cypress" />
  
  import { ArticlePage } from '../page-objects/article-page'
  
  const articlePage = new ArticlePage()
  
  describe('references', () => {
    beforeEach(() => {
      cy.navigateToHomePage()
    })
  
    it('check preview for references opens', () => {
      goToCatArticle()
      cy.downArrow()
      cy.downArrow()
      cy.enter()
      cy.get('div.ref-title').should('be.visible')
    })
  })
  
  function goToCatArticle () {
    cy.navigateToPageWithoutOnboarding('article/en/Last_Year%3A_The_Nightmare')
    articlePage.title().should('have.text', 'Last Year: The Nightmare')
  }
  