Skip to content

Commit

Permalink
implemented react hook form into addpopup
Browse files Browse the repository at this point in the history
  • Loading branch information
evanping committed Jun 24, 2024
1 parent 6e7e70c commit bb5c5be
Show file tree
Hide file tree
Showing 5 changed files with 173 additions and 227 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/test.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('test spec', () => {
cy.get('[data-cy="edit-element-button-0-1"]').click()
cy.get('[data-cy="add-popup-delete-editElement-0-1"]').click()

cy.get('[data-cy="stage-0"]').should("not.contain", "Prompt")
cy.get('[data-cy="element-0-1"]').should("not.exist")

// add fourth element to second stage via code editor
cy.get('[data-cy="code-editor"]').type(" - name: Element 4\n type: prompt\nfile: file/address")
Expand Down Expand Up @@ -101,6 +101,6 @@ describe('test spec', () => {
cy.get('[data-cy="edit-stage-button-2"]').click()
cy.get('[data-cy="add-popup-delete-editStage-2-"]').click()

cy.get('[data-cy="timeline"]').should("not.contain", "Stage 3")
cy.get('[data-cy="stage-2"]').should("not.exist")
})
})
22 changes: 22 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"octokit": "^3.1.1",
"react": "^18",
"react-dom": "^18",
"react-hook-form": "^7.52.0",
"react-resizable-layout": "^0.7.2",
"yaml": "^2.4.0"
},
Expand Down
Loading

0 comments on commit bb5c5be

Please sign in to comment.