mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
23 lines
602 B
JavaScript
23 lines
602 B
JavaScript
/// <reference types="Cypress" />
|
|
|
|
context('Window', () => {
|
|
beforeEach(() => {
|
|
cy.visit('https://example.cypress.io/commands/window')
|
|
})
|
|
|
|
it('cy.window() - get the global window object', () => {
|
|
// https://on.cypress.io/window
|
|
cy.window().should('have.property', 'top')
|
|
})
|
|
|
|
it('cy.document() - get the document object', () => {
|
|
// https://on.cypress.io/document
|
|
cy.document().should('have.property', 'charset').and('eq', 'UTF-8')
|
|
})
|
|
|
|
it('cy.title() - get the title', () => {
|
|
// https://on.cypress.io/title
|
|
cy.title().should('include', 'Kitchen Sink')
|
|
})
|
|
})
|