-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement border for sinaturepad question (#358)
- Loading branch information
Showing
7 changed files
with
106 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { checkPDFSnapshot } from './snapshot_helper'; | ||
import { FlatSignaturePad } from '../src/flat_layout/flat_signaturepad'; | ||
|
||
var json = { | ||
elements: [ | ||
{ | ||
type: 'signaturepad', | ||
name: 'q1', | ||
} | ||
] | ||
}; | ||
|
||
test('Check signature with dashed border', async () => { | ||
await checkPDFSnapshot(json, { | ||
snapshotName: 'signature_border_dashed', | ||
}); | ||
}); | ||
|
||
test('Check signature with solid border', async () => { | ||
FlatSignaturePad.BORDER_STYLE = 'solid'; | ||
await checkPDFSnapshot(json, { | ||
snapshotName: 'signature_border_solid', | ||
}); | ||
FlatSignaturePad.BORDER_STYLE = 'none'; | ||
}); | ||
|
||
test('Check signature without border', async () => { | ||
FlatSignaturePad.BORDER_STYLE = 'none'; | ||
await checkPDFSnapshot(json, { | ||
snapshotName: 'signature_border_none', | ||
}); | ||
FlatSignaturePad.BORDER_STYLE = 'dashed'; | ||
}); |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters