From 7d00a5e6263c69abb2a3137c20572175a20fe338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20El-Saig?= Date: Fri, 4 Aug 2023 20:33:15 +0200 Subject: [PATCH] Disable "form-dup-name" rule. --- .../OrchardCore.Commerce/Views/Checkout.cshtml | 4 +--- .../.htmlvalidate.json | 18 ++++++++++++++++++ .../OrchardCore.Commerce.Tests.UI.csproj | 7 +++++++ 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 test/OrchardCore.Commerce.Tests.UI/.htmlvalidate.json diff --git a/src/Modules/OrchardCore.Commerce/Views/Checkout.cshtml b/src/Modules/OrchardCore.Commerce/Views/Checkout.cshtml index cc3d6bd83..e5972cb28 100644 --- a/src/Modules/OrchardCore.Commerce/Views/Checkout.cshtml +++ b/src/Modules/OrchardCore.Commerce/Views/Checkout.cshtml @@ -1,6 +1,4 @@ @using OrchardCore.Commerce.Controllers; -@using OrchardCore.Commerce.Tax.Extensions -@using OrchardCore.Mvc.Core.Utilities; @model CheckoutViewModel @@ -99,7 +97,7 @@ prop-NetTotal="@Model.NetTotal" prop-GrossTotal="@Model.GrossTotal" prop-PublishableKey="@Model.StripePublishableKey" - prop-ClientSecret="@Model.PaymentIntentClientSecret"/> + prop-ClientSecret="@Model.PaymentIntentClientSecret"/> } else { diff --git a/test/OrchardCore.Commerce.Tests.UI/.htmlvalidate.json b/test/OrchardCore.Commerce.Tests.UI/.htmlvalidate.json new file mode 100644 index 000000000..424297cef --- /dev/null +++ b/test/OrchardCore.Commerce.Tests.UI/.htmlvalidate.json @@ -0,0 +1,18 @@ +{ + "extends": [ + "html-validate:recommended" + ], + + "rules": { + "attribute-boolean-style": "off", + "no-trailing-whitespace": "off", + "no-inline-style": "off", + "wcag/h30": "off", + "wcag/h32": "off", + "wcag/h36": "off", + "wcag/h37": "off", + "wcag/h67": "off", + "wcag/h71": "off", + "form-dup-name": "off" + } +} diff --git a/test/OrchardCore.Commerce.Tests.UI/OrchardCore.Commerce.Tests.UI.csproj b/test/OrchardCore.Commerce.Tests.UI/OrchardCore.Commerce.Tests.UI.csproj index 126bb9c0f..3a8593c10 100644 --- a/test/OrchardCore.Commerce.Tests.UI/OrchardCore.Commerce.Tests.UI.csproj +++ b/test/OrchardCore.Commerce.Tests.UI/OrchardCore.Commerce.Tests.UI.csproj @@ -22,4 +22,11 @@ + + + + PreserveNewest + + +