hooks.spec.js 470 B

12345678910111213141516171819
  1. /// <reference types="cypress" />
  2. describe('hooks', () => {
  3. it('should run starting callbacks', () => {
  4. cy.visit('/tests/cypress/fixtures/hooks')
  5. cy.window().then(win => {
  6. cy.wrap(win.starting).should('equal', 1)
  7. })
  8. })
  9. it('should run started callbacks', () => {
  10. cy.visit('/tests/cypress/fixtures/hooks')
  11. cy.window().then(win => {
  12. cy.wrap(win.started).should('equal', 1)
  13. })
  14. })
  15. })