From 0a812dad07a06fc9cf850e5a359165c144d49221 Mon Sep 17 00:00:00 2001 From: Stanslav Zaytsev Date: Mon, 26 Feb 2024 16:50:41 +0300 Subject: [PATCH] refactor(demo-integrations): maxlength poperty type replaced from string to number --- .../native-max-length/native-maxlength-attribute.cy.ts | 4 ++-- .../demo-integrations/src/tests/component-testing/utils.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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) {