Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
Cleanup Institutions test file
Browse files Browse the repository at this point in the history
  • Loading branch information
meissadia committed Oct 17, 2020
1 parent 8b63105 commit e08ea85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cypress/tests/integration/institution.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ describe('HMDA Help', () => {
const successMessage = `The institution, ${HH_INSTITUTION}, has been updated.`
const nameLabelText = 'Respondent Name'
const updateButtonText = 'Update the institution'
const testName = 'Cypress Test Name Update'

const timestamp1 = Date.now()
const testName = 'Cypress - Change respondent name ' + timestamp1

cy.findByText("Note History").click()
cy.get('.note-list li')
.first()
Expand All @@ -45,7 +45,6 @@ describe('HMDA Help', () => {

cy.findByLabelText(nameLabelText).then($name => {
const savedName = $name.attr('value')
expect($name.attr('value')).to.not.contain(testName)

// Change Respondent Name
cy.findByLabelText(nameLabelText)
Expand Down Expand Up @@ -74,6 +73,7 @@ describe('HMDA Help', () => {
.find('button .text')
.should('contain.text', timestamp1)
cy.get('@firstNote')
.click()
.find('.details tbody td')
.eq(0)
.should('contain.text', "respondent")
Expand Down

0 comments on commit e08ea85

Please sign in to comment.