Skip to content

Commit

Permalink
updated cypress test prompt file addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
evanping committed Jul 30, 2024
1 parent 5f22746 commit 8e57086
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file added cypress/downloads/downloads.html
Binary file not shown.
4 changes: 2 additions & 2 deletions cypress/e2e/test.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('test spec', () => {
cy.get('[data-cy="add-element-button-0"]').click()
cy.get('[data-cy="edit-element-name-0-new"]').type("Element 1")
cy.get('[data-cy="edit-element-type-0-new"]').select("Prompt")
cy.get('[data-cy="edit-element-file-0-new"]').type("file/address")
cy.get('[data-cy="edit-element-file-0-new"]').type("projects/example/preDiscussionInstructions.md")
cy.get('[data-cy="edit-element-save-0-new"]').click()

cy.get('[data-cy="element-0-0"]').contains("prompt").should("be.visible")
Expand Down Expand Up @@ -76,7 +76,7 @@ describe('test spec', () => {
// edit first element
cy.get('[data-cy="edit-element-button-0-0"]').click()
cy.get('[data-cy="edit-element-name-0-0"]').should("have.value", "Element 1").should("be.visible").type(" Edited")
cy.get('[data-cy="edit-element-file-0-0"]').type("edited/file/address")
cy.get('[data-cy="edit-element-file-0-0"]').type("projects/example/discussionInstructions.md")
cy.get('[data-cy="edit-element-save-0-0"]').click()

cy.get('[data-cy="element-0-0"]').contains("prompt").should("be.visible")
Expand Down

0 comments on commit 8e57086

Please sign in to comment.