Skip to content

Commit

Permalink
Add quiet to test
Browse files Browse the repository at this point in the history
  • Loading branch information
clari182 committed Mar 14, 2024
1 parent 0aad120 commit 1879b74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions site/gatsby-site/cypress/e2e/integration/citeEdit.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ const IncidentReportForm = () => {
</div>
<div className="mt-1">
<Checkbox
name="quiet"
checked={values.quiet}
onChange={(e) => {
setFieldValue('quiet', e.target.checked);
Expand Down

0 comments on commit 1879b74

Please sign in to comment.