diff --git a/cypress/integration/petitions-clerk-views-case-detail.spec.js b/cypress/integration/petitions-clerk-views-case-detail.spec.js new file mode 100644 index 00000000000..ec1e618ad9d --- /dev/null +++ b/cypress/integration/petitions-clerk-views-case-detail.spec.js @@ -0,0 +1,22 @@ +describe('Petitions clerk views case detail', function () { + before(() => { + cy.login('petitionsclerk'); + }); + + describe('case information tab', () => { + it('should display a card for other petitioners in the petitioner tab', () => { + cy.visit('/case-detail/101-20'); + + cy.get('button#tab-case-information').click(); + + cy.get('button#tab-petitioner').click(); + + cy.get('div#other-petitioners-label').should('exist'); + cy.get('button#view-additional-petitioners-button') + .scrollIntoView() + .click(); + + cy.get('div.other-petitioners-information').should('have.length', 7); + }); + }); +}); diff --git a/web-api/storage/fixtures/seed/101-20.json b/web-api/storage/fixtures/seed/101-20.json index 9f3093b928d..c1a07af5f60 100644 --- a/web-api/storage/fixtures/seed/101-20.json +++ b/web-api/storage/fixtures/seed/101-20.json @@ -32,7 +32,7 @@ "address1": "453 Electric Ave", "postalCode": "99999", "name": "Rachael Ray", - "additionalName": "Rachael Ray, Petitioner", + "additionalName": "Rachael Ray", "state": "PA", "countryType": "domestic", "email": "mayor@flavortown.gov",