Skip to content

Commit 5774305

Browse files
da-hJackUrb
authored andcommitted
test: check that properties updated correctly
1 parent ba25b35 commit 5774305

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

cypress/integration/properties.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,24 @@ describe('Properties Pane', () => {
2020

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

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

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

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

33-
cy.get('select').first().select('Red').select('Blue')
36+
cy.get('select').first().should("have.value", "1").select('Red')
3437
cy.get('.layout .react-grid-item .content-text').first().contains("Updated: Select => 0")
35-
36-
cy.get('select').first().select('Blue')
38+
cy.get('select').first().should("have.value", "0").select('Blue')
3739
cy.get('.layout .react-grid-item .content-text').first().contains("Updated: Select => 2")
40+
cy.get('select').first().should("have.value", "2")
3841

3942
})
4043

0 commit comments

Comments
 (0)