Skip to content

Commit

Permalink
Merge pull request #1937 from stakwork/fix/addNodeType-cypress-test
Browse files Browse the repository at this point in the history
fix: ensured the last new element is what's select each time
  • Loading branch information
Rassl authored Jul 25, 2024
2 parents 0f47a98 + 3262f39 commit f8bb2fb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cypress/e2e/addNode/addNodeType.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ describe('Add Node Type Via BluePrint', () => {
cy.get('[data-testid="add-attribute-btn"]').click()
cy.wait(500)

cy.get('[data-testid="cy-item-name-1"]').type('age')
cy.get('[data-testid="cy-item-select-1"]').click()
cy.get('[data-testid^="cy-item-name-"]').last().type('age')

cy.get('[data-testid^="cy-item-select-"]').last().click()
cy.contains('number').click()
cy.get('[data-testid="cy-item-1"]').click()
cy.get('[data-testid^="cy-item-"]').last().click()
cy.wait(200)

cy.contains('Confirm').click()
Expand Down

0 comments on commit f8bb2fb

Please sign in to comment.