From d80905f2f6c7a15e1c7c58041cbd068f5b8424b3 Mon Sep 17 00:00:00 2001 From: Nandini Chandra Date: Mon, 11 Nov 2024 16:41:16 -0600 Subject: [PATCH] [RFR] Fix app archetype association test (#1255) * Fix app archetype association test Signed-off-by: Nandini Chandra * Fix app archetype association test Signed-off-by: Nandini Chandra * Update cypress/e2e/models/migration/archetypes/archetype.ts Co-authored-by: Alejandro Brugarolas <117646518+abrugaro@users.noreply.github.com> Signed-off-by: Nandini Chandra --------- Signed-off-by: Nandini Chandra Co-authored-by: Alejandro Brugarolas <117646518+abrugaro@users.noreply.github.com> --- cypress/e2e/models/migration/archetypes/archetype.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/models/migration/archetypes/archetype.ts b/cypress/e2e/models/migration/archetypes/archetype.ts index ab72f99fc..a26eeb934 100644 --- a/cypress/e2e/models/migration/archetypes/archetype.ts +++ b/cypress/e2e/models/migration/archetypes/archetype.ts @@ -229,8 +229,14 @@ export class Archetype { validateAssessmentField(risk: string): void { Archetype.open(true); - Assessment.validateAssessmentField(this.name, "Archetype", risk); + cy.get(tdTag, { timeout: 10 * SEC }) + .contains(this.name) + .click(); + cy.get(commonView.sideDrawer.risk).contains("Archetype risk"); + cy.get(commonView.sideDrawer.labelContent).should("contain", risk); + click(commonView.sideDrawer.closeDrawer); } + validateReviewDonutChart(): void { Archetype.open(); clickKebabMenuOptionArchetype(this.name, review);