To get the global window object, use the cy.window()
command.
cy.window().should('have.property', 'top')
To get the document object, use the cy.document()
command.
cy.document().should('have.property', 'charset').and('eq', 'UTF-8')
To get the title, use the cy.title()
command.
cy.title().should('include', 'Kitchen Sink')