diff --git a/projects/demo-integrations/src/tests/component-testing/native-max-length/native-maxlength-attribute.cy.ts b/projects/demo-integrations/src/tests/component-testing/native-max-length/native-maxlength-attribute.cy.ts index e58a9204d..8cf4ba9da 100644 --- a/projects/demo-integrations/src/tests/component-testing/native-max-length/native-maxlength-attribute.cy.ts +++ b/projects/demo-integrations/src/tests/component-testing/native-max-length/native-maxlength-attribute.cy.ts @@ -14,7 +14,7 @@ describe('Native attribute maxlength works', () => { cy.mount(TestInput, { componentProperties: { maskitoOptions, - maxLength: '3', + maxLength: 3, }, }); cy.get('input[maxlength="3"]') @@ -97,7 +97,7 @@ describe('Native attribute maxlength works', () => { cy.mount(TestInput, { componentProperties: { maskitoOptions, - maxLength: '6', + maxLength: 6, }, }); cy.get('input[maxlength="6"]') diff --git a/projects/demo-integrations/src/tests/component-testing/utils.ts b/projects/demo-integrations/src/tests/component-testing/utils.ts index aa6d118ec..51b05fe8b 100644 --- a/projects/demo-integrations/src/tests/component-testing/utils.ts +++ b/projects/demo-integrations/src/tests/component-testing/utils.ts @@ -36,7 +36,7 @@ export class TestInput implements AfterViewInit { input = new EventEmitter(); @Input() - maxLength?: string; + maxLength?: number; ngAfterViewInit(): void { if (this.maxLength) {