Skip to content

Commit

Permalink
Should close #2572 - french classes heisenbug
Browse files Browse the repository at this point in the history
  • Loading branch information
taoeffect committed Feb 12, 2025
1 parent a145c24 commit a44b1e9
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions test/cypress/integration/group-contributions.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,6 @@ function addNonMonetaryContribution (name) {
})
}

function assertNonMonetaryEditableValue (name) {
// Need to wait until the event is processed
cy.giEmptyInvocationQueue()

cy.getByDT('buttonEditNonMonetaryContribution').click()
cy.getByDT('inputNonMonetaryContribution').should('have.value', name)
cy.getByDT('buttonCancelNonMonetaryContribution').click()
}

function assertGraphicSummary (legendListItems) {
cy.getByDT('groupPledgeSummary', 'ul').within(([list]) => {
legendListItems.forEach((legendText, index) => {
Expand Down Expand Up @@ -373,8 +364,7 @@ describe('Contributions', () => {
cy.getByDT('buttonEditNonMonetaryContribution').click()
cy.getByDT('inputNonMonetaryContribution').clear()
cy.getByDT('inputNonMonetaryContribution').type('French classes{enter}')
assertNonMonetaryEditableValue('French classes')

cy.giEmptyInvocationQueue() // wait for edits to go through
cy.getByDT('givingList', 'ul')
.get('li.is-editable')
.should('have.length', 1)
Expand Down

0 comments on commit a44b1e9

Please sign in to comment.