Skip to content

Commit

Permalink
#7219 - fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
novikov82 committed Nov 2, 2023
1 parent 481fac2 commit 80fb2fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/question_signaturepad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ export class QuestionSignaturePadModel extends Question {
initSignaturePad(el: HTMLElement) {
var canvas: any = el.getElementsByTagName("canvas")[0];
this.canvas = canvas;
canvas.width = this.containerWidth;
canvas.height = this.containerHeight;
var signaturePad = new SignaturePad(canvas, { backgroundColor: "#ffffff" });
this.signaturePad = signaturePad;
if (this.isInputReadOnly) {
Expand Down
4 changes: 2 additions & 2 deletions visualRegressionTests/tests/defaultV2/signaturepad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const theme = "defaultV2";
frameworks.forEach(framework => {
fixture`${framework} ${title} ${theme}`
.page`${url_test}${theme}/${framework}`.beforeEach(async t => {
await applyTheme(theme);
});
await applyTheme(theme);
});
test("Signature resize to mobile", async (t) => {
await wrapVisualTest(t, async (t, comparer) => {
await t.resizeWindow(1920, 1080);
Expand Down

0 comments on commit 80fb2fc

Please sign in to comment.