From 89a4ee7dccccff13ffd38e49a068a9f6cc7c169d Mon Sep 17 00:00:00 2001 From: kpunwatk Date: Tue, 21 Jan 2025 12:01:38 +0530 Subject: [PATCH] [RFR] Fix Source analysis Signed-off-by: Karishma Punwatkar modified: cypress/e2e/models/migration/applicationinventory/application.ts modified: cypress/e2e/models/migration/dynamic-report/issues/issues.ts --- .../e2e/models/migration/applicationinventory/application.ts | 4 ++-- cypress/e2e/models/migration/dynamic-report/issues/issues.ts | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/models/migration/applicationinventory/application.ts b/cypress/e2e/models/migration/applicationinventory/application.ts index 54039ca3b..d4e6059ff 100644 --- a/cypress/e2e/models/migration/applicationinventory/application.ts +++ b/cypress/e2e/models/migration/applicationinventory/application.ts @@ -573,11 +573,11 @@ export class Application { }); cy.get("ul[role=tablist] >li >button").then((button) => { if (!button.text().includes("All incidents")) { - // Asserting that content of text field has at least 100 symbols + // Asserting that content of text field has at least 50 symbols cy.get("div.monaco-scrollable-element.editor-scrollable.vs-dark") .invoke("text") .then((text) => { - expect(text.length).to.be.at.least(100); + expect(text.length).to.be.at.least(50); }); } }); diff --git a/cypress/e2e/models/migration/dynamic-report/issues/issues.ts b/cypress/e2e/models/migration/dynamic-report/issues/issues.ts index 724f92bd9..4fdca0afc 100644 --- a/cypress/e2e/models/migration/dynamic-report/issues/issues.ts +++ b/cypress/e2e/models/migration/dynamic-report/issues/issues.ts @@ -214,7 +214,9 @@ export class Issues { ); Issues.validateSection(issue.name, sections.targetTechnologies, span, issue.targets); Issues.validateSection(issue.name, sections.sourceTechnologies, div, issue.sources); - Issues.validateSection(issue.name, sections.ruleSet, div, issue.ruleSet); + if (issue.ruleSet) { + Issues.validateSection(issue.name, sections.ruleSet, div, issue.ruleSet); + } Issues.validateSection(issue.name, sections.rule, div, issue.rule); Issues.validateSection(issue.name, sections.labels, div, issue.labels); }