From d5057d2ad90b19c93bd52709a76148fa2dd1278b Mon Sep 17 00:00:00 2001 From: kennsippell Date: Thu, 7 Nov 2024 10:33:41 -0700 Subject: [PATCH] One more regression case --- test/app-forms.spec.js | 9 +- test/collateral/forms/app/bug_269_next.xlsx | Bin 0 -> 13933 bytes test/collateral/forms/app/bug_269_next.xml | 88 ++++++++++++++++++ .../app/{bug_269.xlsx => bug_269_submit.xlsx} | Bin .../app/{bug_269.xml => bug_269_submit.xml} | 0 5 files changed, 95 insertions(+), 2 deletions(-) create mode 100644 test/collateral/forms/app/bug_269_next.xlsx create mode 100644 test/collateral/forms/app/bug_269_next.xml rename test/collateral/forms/app/{bug_269.xlsx => bug_269_submit.xlsx} (100%) rename test/collateral/forms/app/{bug_269.xml => bug_269_submit.xml} (100%) diff --git a/test/app-forms.spec.js b/test/app-forms.spec.js index ac541f0..5152a45 100644 --- a/test/app-forms.spec.js +++ b/test/app-forms.spec.js @@ -359,8 +359,13 @@ describe('forms that have caused bugs', () => { expect(result.report.fields.fp_follow_up.display_is_muted).to.eq(actual); }); - it('#269 - submit before checking for errors', async () => { - const result = await harness.fillForm('bug_269', ['1', '1']); + it('#269 - submit clears erroneous constraints before reporting errors', async () => { + const result = await harness.fillForm('bug_269_submit', ['1', '1']); + expect(result.errors).to.be.empty; + }); + + it('#269 - next clears erroneous constraints before reporting errors', async () => { + const result = await harness.fillForm('bug_269_next', ['1', '1'], ['answer']); expect(result.errors).to.be.empty; }); }); diff --git a/test/collateral/forms/app/bug_269_next.xlsx b/test/collateral/forms/app/bug_269_next.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..021aadaeff54bd71aaac2ab5bff3d1d7f24e614e GIT binary patch literal 13933 zcmeHuWmp``wl)?lxP%0k!QI`13?4MNy9_e81t+)@9D)o^a0?J1xI+?xySoR!kbUmi z*}3QJ=lkx@`<%t}FkNr2)!lEcs#V>!N=X(L4hISm5fLgm+*}jt7r}q{?PkNQ?`Ue{ z#Ow-kv^D~PteMLhvWY2J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BU1j*E?#Jdl_Fo_$o4*V=> znVmul&5(LwuA{;fwW&==VUZayOe`>jDQc{N`%Wc!2k1L$h0gMsWNzoy%4ld|yyr0M z2hTkPNkJZdl~jqtUWOM7S0nnR#j{T!uhUKN`+T;BRL&aa3zd-^ilCR-jKTuf))IO9 zv-oQfnPHW zAM>C8l<|jW+y?`HW<&q3`s=IO#}~4HO4vha{>O#?kA%eEt^E2p{Z}hq#Q)OD&zHQv zTlsbP`d2H&l>gGo&j<0}t^7LfcpU2fDW|l5kn#J#_je1whUCZb$)DoK@R!lb?~1=h zj>m}orxY^&+UNZve*doiYxnsWUj7t5=3mtR5o~_f{ + + + U5 Assessment + + + + + + + + + + + + + user + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + 1 + + + + 2 + + + + + + + 0 + + + + 1 + + + + 2 + + + + + + + + + + + diff --git a/test/collateral/forms/app/bug_269.xlsx b/test/collateral/forms/app/bug_269_submit.xlsx similarity index 100% rename from test/collateral/forms/app/bug_269.xlsx rename to test/collateral/forms/app/bug_269_submit.xlsx diff --git a/test/collateral/forms/app/bug_269.xml b/test/collateral/forms/app/bug_269_submit.xml similarity index 100% rename from test/collateral/forms/app/bug_269.xml rename to test/collateral/forms/app/bug_269_submit.xml