Skip to content

Commit

Permalink
test: check that properties updated correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hartmann authored and JackUrb committed Jan 13, 2023
1 parent ba25b35 commit 5774305
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions cypress/integration/properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,24 @@ describe('Properties Pane', () => {

cy.get('input[value="initial"]').first().clear().type("changed{enter}")
cy.get('.layout .react-grid-item .content-text').first().contains("Updated: Text input => changed")
cy.get('input[value="changed_updated"]')

cy.get('input[value="12"]').first().clear().type("42{enter}")
cy.get('.layout .react-grid-item .content-text').first().contains("Updated: Number input => 42")
cy.get('input[value="420"]')

cy.get('button').contains("Start").click()
cy.get('.layout .react-grid-item .content-text').first().contains("Updated: Button => clicked")

cy.get('input[type="checkbox"]').first().click()
cy.get('input[type="checkbox"]').first().should("be.checked").click()
cy.get('.layout .react-grid-item .content-text').first().contains("Updated: Checkbox => False")
cy.get('input[type="checkbox"]').first().should("not.be.checked")

cy.get('select').first().select('Red').select('Blue')
cy.get('select').first().should("have.value", "1").select('Red')
cy.get('.layout .react-grid-item .content-text').first().contains("Updated: Select => 0")

cy.get('select').first().select('Blue')
cy.get('select').first().should("have.value", "0").select('Blue')
cy.get('.layout .react-grid-item .content-text').first().contains("Updated: Select => 2")
cy.get('select').first().should("have.value", "2")

})

Expand Down

0 comments on commit 5774305

Please sign in to comment.