Skip to content

Commit

Permalink
[RFR] Fix Source analysis
Browse files Browse the repository at this point in the history
Signed-off-by: Karishma Punwatkar <kpunwatk@redhat.com>

	modified:   cypress/e2e/models/migration/applicationinventory/application.ts
	modified:   cypress/e2e/models/migration/dynamic-report/issues/issues.ts
  • Loading branch information
kpunwatk committed Jan 21, 2025
1 parent 09a7bcd commit 89a4ee7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}
});
Expand Down
4 changes: 3 additions & 1 deletion cypress/e2e/models/migration/dynamic-report/issues/issues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 89a4ee7

Please sign in to comment.