Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dk981234 committed Jan 17, 2025
1 parent b209ef0 commit cd2428e
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/acro_checkbox.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ test('Check two equal values checkbox', async () => {
});
test('Check readonly checkbox symbol', async () => {
let json: any = {
showQuestionNumbers: 'on',
questions: [
{
name: 'checkbox_readonly_symbol',
Expand Down
1 change: 1 addition & 0 deletions tests/acro_dropdown.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ let __dummy_dd = new FlatDropdown(null, null, null);

test('Check dropdown readonly', async () => {
let json: any = {
showQuestionNumbers: 'on',
questions: [
{
name: 'dropdown_readonly',
Expand Down
1 change: 1 addition & 0 deletions tests/flat_boolean.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ test('Check boolean renderAs: radiogroup locales', async () => {
});
test('Check boolean renderAs: radiogroup question number', async () => {
const survey = new Model({
showQuestionNumbers: 'on',
elements: [
{
type: 'boolean',
Expand Down
1 change: 1 addition & 0 deletions tests/flat_file.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ test('Test file question getImagePreviewContentWidth always return correct image

test('Test file question inside paneldynamic waits preview loading', async () => {
const json: any = {
showQuestionNumbers: 'on',
'logoPosition': 'right',
'pages': [
{
Expand Down
1 change: 1 addition & 0 deletions tests/flat_panel.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ test('Check panel with title', async () => {
});
test('Check panel with title and number', async () => {
const json: any = {
showQuestionNumbers: 'on',
elements: [
{
type: 'panel',
Expand Down
4 changes: 4 additions & 0 deletions tests/flat_question.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ test('Calc boundaries with indent', async () => {
});
test('Not visible question and visible question', async () => {
const json: any = {
showQuestionNumbers: 'on',
questions: [
{
type: 'checkbox',
Expand Down Expand Up @@ -516,6 +517,7 @@ test('VisibleIf row', async () => {
});
test('Check title with number next raw position', async () => {
const json: any = {
showQuestionNumbers: 'on',
questions: [
{
type: 'checkbox',
Expand All @@ -536,6 +538,7 @@ test('Check title with number next raw position', async () => {
});
test('Check equality of margins.left and contentPoint.xLeft with titleLocation: left', async () => {
const json: any = {
showQuestionNumbers: 'on',
questions: [
{
type: 'checkbox',
Expand Down Expand Up @@ -624,6 +627,7 @@ test('Check question\'s content indent with CONTENT_INDENT_SCALE', async () => {

test('Check description under input', async () => {
const json = {
showQuestionNumbers: 'on',
elements: [
{
type: 'text',
Expand Down
1 change: 1 addition & 0 deletions tests/flat_survey.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ test('Survey with logo and pages', async () => {
test('Check default renderer for custom questions', async () => {
const CUSTOM_TYPE = 'test';
const json = {
showQuestionNumbers: 'on',
elements: [
{
type: CUSTOM_TYPE,
Expand Down
1 change: 1 addition & 0 deletions tests/pdf_comment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { checkFlatSnapshot, checkPDFSnapshot } from './snapshot_helper';
const largeCommentText = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus.';

var json = {
showQuestionNumbers: 'on',
'elements': [
{
'type': 'comment',
Expand Down
1 change: 1 addition & 0 deletions tests/pdf_signature.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { checkPDFSnapshot } from './snapshot_helper';
import { FlatSignaturePad } from '../src/flat_layout/flat_signaturepad';

var json = {
showQuestionNumbers: 'on',
elements: [
{
type: 'signaturepad',
Expand Down

0 comments on commit cd2428e

Please sign in to comment.