From 969e5707fa0abcce38ebaa007006957543b397f5 Mon Sep 17 00:00:00 2001 From: "~ . ~" Date: Fri, 4 Oct 2024 12:04:52 -0400 Subject: [PATCH] only need the help uri --- features/fedramp_extensions.feature | 2 +- features/steps/fedramp_extensions_steps.ts | 13 ++----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/features/fedramp_extensions.feature b/features/fedramp_extensions.feature index df937a037..27401675d 100644 --- a/features/fedramp_extensions.feature +++ b/features/fedramp_extensions.feature @@ -153,7 +153,7 @@ Scenario Outline: Ensuring full test coverage for "" Given I have loaded all Metaschema extensions documents And I have added all documents to a single Document model Then I should have both FAIL and PASS tests for constraint ID "" -Then I should have three help props for constraint ID "" +Then I should have help url prop for constraint ID "" Examples: | constraint_id | #BEGIN_DYNAMIC_CONSTRAINT_IDS diff --git a/features/steps/fedramp_extensions_steps.ts b/features/steps/fedramp_extensions_steps.ts index e63892053..3f11d9f4b 100644 --- a/features/steps/fedramp_extensions_steps.ts +++ b/features/steps/fedramp_extensions_steps.ts @@ -684,7 +684,7 @@ Given("I have added all documents to a single Document model", function () { console.log("All documents have been added to a single Document model"); }); -Then("I should have three help props for constraint ID {string}", function (constraintId) { +Then("I should have help url prop for constraint ID {string}", function (constraintId) { const constraintRule = metaschemaDom.window.document.querySelector(`[id="${constraintId}"]`); if (!constraintRule) { @@ -695,16 +695,7 @@ Then("I should have three help props for constraint ID {string}", function (cons { namespace: "https://docs.oasis-open.org/sarif/sarif/v2.1.0", name: "help-url" - }, - { - namespace: "https://docs.oasis-open.org/sarif/sarif/v2.1.0", - name: "help-text" - }, - { - namespace: "https://docs.oasis-open.org/sarif/sarif/v2.1.0", - name: "help-markdown" - } - ]; + } ]; const missingProps = requiredProps.filter(prop => !constraintRule.querySelector(`prop[ns="${prop.namespace}"][name="${prop.name}"]`)