reset.spec.js 530 B

12345678910111213141516171819
  1. /// <reference types="cypress" />
  2. describe('reset', () => {
  3. it('should re-render after state reset', () => {
  4. cy.visit('/tests/cypress/fixtures/reset')
  5. cy.get('span[data-basic]').should('have.text', 'car')
  6. cy.get('button[data-basic-update]').click()
  7. cy.get('span[data-basic]').should('have.text', 'boo')
  8. cy.get('[data-null-store]').should('have.text', '')
  9. cy.get('[data-null-store-update]').click()
  10. cy.get('[data-null-store]').should('have.text', 'Ryan')
  11. })
  12. })