From 1c5e1719007fe365b91446eaadee314a29de42f4 Mon Sep 17 00:00:00 2001 From: Mehrad Malayeri Date: Tue, 25 Jan 2022 18:30:11 +0330 Subject: [PATCH 1/5] Update github actions for cypress tests. --- .github/workflows/node.js.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index f2a9203a9f..8a149ac06b 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -30,6 +30,7 @@ jobs: - run: npm rebuild canvas --update-binary - run: npm rebuild libxmljs --update-binary - run: npm run build-spa + - run: npm run test:e2e-ci - run: npm run lint - run: npm run test - run: xvfb-run -a npm run self-check From 5a4783fd53d73483d9900dcf7f028acaf975a688 Mon Sep 17 00:00:00 2001 From: Mehrad Malayeri Date: Tue, 1 Feb 2022 01:07:54 +0330 Subject: [PATCH 2/5] https://github.com/project-chip/zap/issues/208 --- src-electron/validation/validation.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src-electron/validation/validation.js b/src-electron/validation/validation.js index ecad7e5b32..d397f04dd9 100644 --- a/src-electron/validation/validation.js +++ b/src-electron/validation/validation.js @@ -176,6 +176,11 @@ function checkBoundsFloat(defaultValue, min, max) { return defaultValue >= min && defaultValue <= max } +function isValidSignedNumberString(value) { + return /^(0x)?[\dA-F]+$/i.test(value) || Number.isInteger(Number(value)); +} + + // exports exports.validateAttribute = validateAttribute exports.validateEndpoint = validateEndpoint From 8a9fad329853fb0b1d22170b9ff13b023f0034d8 Mon Sep 17 00:00:00 2001 From: Mehrad Malayeri Date: Tue, 1 Feb 2022 01:27:23 +0330 Subject: [PATCH 3/5] https://github.com/project-chip/zap/issues/311 --- src/components/ZclAttributeManager.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/ZclAttributeManager.vue b/src/components/ZclAttributeManager.vue index cefc37c652..2078d3ad94 100644 --- a/src/components/ZclAttributeManager.vue +++ b/src/components/ZclAttributeManager.vue @@ -37,14 +37,18 @@ limitations under the License. >