diff --git a/src/Crisp.Core.Tests/UnitTest1.cs b/src/Crisp.Core.Tests/UnitTest1.cs index f57ae53..7c9d1a6 100644 --- a/src/Crisp.Core.Tests/UnitTest1.cs +++ b/src/Crisp.Core.Tests/UnitTest1.cs @@ -72,7 +72,7 @@ public async Task Test2() { var body = document.MainDocumentPart.Document.Body; //var bookmark = body.Descendants().First(b => b.Name == "tm_threat_properties"); - var header = body.Descendants().Where(p => p.Descendants().Any(r => r.Descendants().Any(t => t.Text.ToLower() == "threat properties"))).First(); + var header = body.Descendants().Where(p => p.Descendants().Any(r => r.Descendants().Any(t => t.Text.ToLower() == "threats and mitigations"))).First(); // hr var p1 = new Paragraph(new ParagraphProperties(new ParagraphBorders(new BottomBorder { Val = BorderValues.Single, Color = "auto", Space = 1, Size = 6 }))); diff --git a/src/Crisp.Core/Helpers/OpenXmlHelper.cs b/src/Crisp.Core/Helpers/OpenXmlHelper.cs index be07244..6db6167 100644 --- a/src/Crisp.Core/Helpers/OpenXmlHelper.cs +++ b/src/Crisp.Core/Helpers/OpenXmlHelper.cs @@ -66,7 +66,7 @@ public static void AddThreats(Stream stream, IEnumerable threats using var document = WordprocessingDocument.Open(stream, isEditable: true); var body = document.MainDocumentPart.Document.Body; - var header = FindParagraph(body, "Threat Properties"); + var header = FindParagraph(body, "Threats and Mitigations"); if (header is null) { return; diff --git a/src/Crisp.Ui/ClientApp/src/components/AddThreatModel.js b/src/Crisp.Ui/ClientApp/src/components/AddThreatModel.js index 9381dcf..737991e 100644 --- a/src/Crisp.Ui/ClientApp/src/components/AddThreatModel.js +++ b/src/Crisp.Ui/ClientApp/src/components/AddThreatModel.js @@ -293,7 +293,7 @@ const AddThreatModel = () => { ))} -
Threat properties
+
Threats and Mitigations
{!category ? (

There are no recommendations

) : (