+
+
+ {this.maxLength > 0 && (
+
+ {`${this.currentLength} / ${this.maxLength}`}
+
+ )}
+
+ );
+ }
+}
diff --git a/src/components/counter/tests/ch-counter.e2e.ts b/src/components/counter/tests/ch-counter.e2e.ts
new file mode 100644
index 00000000..74fc6da2
--- /dev/null
+++ b/src/components/counter/tests/ch-counter.e2e.ts
@@ -0,0 +1,158 @@
+import { E2EElement, E2EPage, newE2EPage } from "@stencil/core/testing";
+import { testDefaultProperties } from "../../../testing/utils.e2e";
+
+testDefaultProperties("ch-counter", {
+ initialValue: ""
+});
+
+describe("[ch-counter][basic]", () => {
+ let page: E2EPage;
+ let counterRef: E2EElement;
+
+ beforeEach(async () => {
+ page = await newE2EPage({
+ html: `