Skip to content

Commit

Permalink
Some formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Nandini Chandra <[email protected]>
  • Loading branch information
nachandr committed Sep 19, 2024
1 parent 5a821d4 commit e486cde
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
11 changes: 6 additions & 5 deletions cypress/e2e/models/migration/archetypes/archetype.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,12 @@ 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((_) => {
// This explicit wait is required in some cases.
cy.wait(10 * SEC);
cy.get("h1", { timeout: 35 * SEC }).should("contain", "Archetypes");
selectItemsPerPage(itemsPerPage);
});
return;
}

Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/models/migration/controls/stakeholders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ describe(["@tier3"], "Tests for archetype questionnaire features", () => {
archetype.delete();
Stakeholders.openList(true);
deleteByList(stakeholderList);
AssessmentQuestionnaire.open(true);
AssessmentQuestionnaire.deleteAllQuestionnaires();
});
});

0 comments on commit e486cde

Please sign in to comment.