basic.spec.js 477 B

12345678910111213141516171819
  1. /// <reference types="cypress" />
  2. describe('basic', () => {
  3. it('should render store correctly', () => {
  4. cy.visit('/tests/cypress/fixtures/basic')
  5. cy.get('span').should('have.text', 'car')
  6. })
  7. it('should react to state changes', () => {
  8. cy.visit('/tests/cypress/fixtures/basic/reactivity.html')
  9. cy.get('span').should('have.text', 'car')
  10. cy.get('button').click()
  11. cy.get('span').should('have.text', 'boo')
  12. })
  13. })