From b8d6c19c5ab213e43dc307ba156a1f67cccb3aaa Mon Sep 17 00:00:00 2001 From: Nandini Chandra Date: Thu, 19 Sep 2024 16:03:54 -0500 Subject: [PATCH] Some formatting Signed-off-by: Nandini Chandra --- .../assessment_questionnaire.ts | 1 + cypress/e2e/models/migration/archetypes/archetype.ts | 10 +++++----- cypress/e2e/models/migration/controls/stakeholders.ts | 1 + .../archetypes/questionnaire_features.test.ts | 1 + 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/cypress/e2e/models/administration/assessment_questionnaire/assessment_questionnaire.ts b/cypress/e2e/models/administration/assessment_questionnaire/assessment_questionnaire.ts index c6a4513b7..b000bcac1 100644 --- a/cypress/e2e/models/administration/assessment_questionnaire/assessment_questionnaire.ts +++ b/cypress/e2e/models/administration/assessment_questionnaire/assessment_questionnaire.ts @@ -30,6 +30,7 @@ export class AssessmentQuestionnaire { const itemsPerPage = 100; if (forceReload) { cy.visit(AssessmentQuestionnaire.fullUrl, { timeout: 35 * SEC }).then((_) => { + cy.wait(10 * SEC); selectItemsPerPage(itemsPerPage); }); return; diff --git a/cypress/e2e/models/migration/archetypes/archetype.ts b/cypress/e2e/models/migration/archetypes/archetype.ts index b93b2f603..7f8fc2a2e 100644 --- a/cypress/e2e/models/migration/archetypes/archetype.ts +++ b/cypress/e2e/models/migration/archetypes/archetype.ts @@ -70,11 +70,11 @@ export class Archetype { public static open(forceReload = false) { const itemsPerPage = 100; if (forceReload) { - cy.visit(Archetype.fullUrl, { timeout: 15 * SEC }).then((_) => - cy.wait(15 * SEC); - cy.get("h1", { timeout: 35 * SEC }).should("contain", 'Archetypes'); - selectItemsPerPage(itemsPerPage) - ); + cy.visit(Archetype.fullUrl, { timeout: 15 * SEC }).then((_) => { + cy.wait(10 * SEC); + cy.get("h1", { timeout: 35 * SEC }).should("contain", "Archetypes"); + selectItemsPerPage(itemsPerPage); + }); return; } diff --git a/cypress/e2e/models/migration/controls/stakeholders.ts b/cypress/e2e/models/migration/controls/stakeholders.ts index 08270596f..7db91c9fd 100644 --- a/cypress/e2e/models/migration/controls/stakeholders.ts +++ b/cypress/e2e/models/migration/controls/stakeholders.ts @@ -63,6 +63,7 @@ export class Stakeholders { public static openList(forceReload = false): void { if (forceReload) { cy.visit(Stakeholders.fullUrl, { timeout: 35 * SEC }).then((_) => { + cy.wait(10 * SEC); cy.get("h1", { timeout: 60 * SEC }).should("contain", "Controls"); selectItemsPerPage(100); }); diff --git a/cypress/e2e/tests/migration/archetypes/questionnaire_features.test.ts b/cypress/e2e/tests/migration/archetypes/questionnaire_features.test.ts index 0f2a51017..d69670524 100644 --- a/cypress/e2e/tests/migration/archetypes/questionnaire_features.test.ts +++ b/cypress/e2e/tests/migration/archetypes/questionnaire_features.test.ts @@ -141,6 +141,7 @@ describe(["@tier3"], "Tests for archetype questionnaire features", () => { archetype.delete(); Stakeholders.openList(true); deleteByList(stakeholderList); + AssessmentQuestionnaire.open(true); AssessmentQuestionnaire.deleteAllQuestionnaires(); }); });