mirror of
https://github.com/penpot/penpot.git
synced 2025-06-24 20:56:58 +02:00
🧪 Add e2e tests with Cypress
This commit is contained in:
parent
16fa6259ea
commit
1cc3819e65
31 changed files with 2869 additions and 10 deletions
|
@ -0,0 +1,22 @@
|
|||
/// <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')
|
||||
})
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue