From 1879b74e03b4dd84f119132eb36608ca57ebc507 Mon Sep 17 00:00:00 2001 From: Clara Youdale Date: Thu, 14 Mar 2024 11:41:51 -0300 Subject: [PATCH] Add quiet to test --- site/gatsby-site/cypress/e2e/integration/citeEdit.cy.js | 3 +++ site/gatsby-site/src/components/forms/IncidentReportForm.js | 1 + 2 files changed, 4 insertions(+) diff --git a/site/gatsby-site/cypress/e2e/integration/citeEdit.cy.js b/site/gatsby-site/cypress/e2e/integration/citeEdit.cy.js index 3f79f81cea..49e2345b83 100644 --- a/site/gatsby-site/cypress/e2e/integration/citeEdit.cy.js +++ b/site/gatsby-site/cypress/e2e/integration/citeEdit.cy.js @@ -156,6 +156,8 @@ describe('Edit report', () => { cy.get(`[name=${key}]`).clear().type(updates[key]); }); + cy.get(`[name="quiet"]`).click(); + cy.setEditorText( '## This is text in English\n\nthat is longer that eighty characters, yes eighty characters!', '[data-cy="text"] .CodeMirror' @@ -215,6 +217,7 @@ describe('Edit report', () => { source_domain: 'test.com', editor_notes: 'Pro iustitia tantum', language: 'en', + quiet: true, }; cy.wait('@updateReport').then((xhr) => { diff --git a/site/gatsby-site/src/components/forms/IncidentReportForm.js b/site/gatsby-site/src/components/forms/IncidentReportForm.js index 356bacd182..0fea80a5da 100644 --- a/site/gatsby-site/src/components/forms/IncidentReportForm.js +++ b/site/gatsby-site/src/components/forms/IncidentReportForm.js @@ -431,6 +431,7 @@ const IncidentReportForm = () => {
{ setFieldValue('quiet', e.target.checked);