Skip to content

Commit

Permalink
Add managed QR code settings to form draft QR code
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-white committed Jun 23, 2021
1 parent 3c6f5e5 commit 0d4efe5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/components/form-draft/testing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ export default {
this.xmlFormId
);
return {
general: { server_url: `${window.location.origin}${url}` },
general: {
server_url: `${window.location.origin}${url}`,
form_update_mode: 'match_exactly',
autosend: 'wifi_and_cellular'
},
project: {
name: this.$t('collectProjectName', this.formDraft),
icon: '📝'
Expand Down
4 changes: 3 additions & 1 deletion test/components/form-draft/testing.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ describe('FormDraftTesting', () => {
const { draftToken } = testData.extendedFormDrafts.last();
component.first(CollectQr).getProp('settings').should.eql({
general: {
server_url: `http://localhost:9876/v1/test/${draftToken}/projects/1/forms/f/draft`
server_url: `http://localhost:9876/v1/test/${draftToken}/projects/1/forms/f/draft`,
form_update_mode: 'match_exactly',
autosend: 'wifi_and_cellular'
},
project: { name: '[Draft] My Form', icon: '📝' },
admin: {}
Expand Down

0 comments on commit 0d4efe5

Please sign in to comment.