Skip to content

Commit

Permalink
fix: ensured the last new element is what's select each time
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi-bams committed Jul 25, 2024
1 parent 27d7bad commit 3262f39
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 3262f39

Please sign in to comment.