Skip to content

Commit

Permalink
[RFR] Update selector for Application import form (#670)
Browse files Browse the repository at this point in the history
* Update a few methods in assessment class

Signed-off-by: Nandini Chandra <[email protected]>

* Update a few methods in assessment class

Signed-off-by: Nandini Chandra <[email protected]>

* Update selectors on Application import form

Signed-off-by: Nandini Chandra <[email protected]>

---------

Signed-off-by: Nandini Chandra <[email protected]>
  • Loading branch information
nachandr authored Aug 15, 2023
1 parent ba35bc1 commit 098fd5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cypress/e2e/views/applicationinventory.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,6 @@ export const copyAssessmentTableTd = ".pf-m-compact> tbody > tr > td";
export const copyAssessmentTableTr = ".pf-m-compact> tbody > tr";
export const copyAssessmentPagination = "#bulk-copy-assessment-review-pagination-top";
export const copyAssessmentModal = "div.pf-v5-c-modal-box";

// Fields related to application import
export const appImportForm = "form.pf-v5-c-form";
3 changes: 2 additions & 1 deletion cypress/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import {
date,
createEntitiesCheckbox,
topKebabMenu,
appImportForm,
} from "../e2e/views/applicationinventory.view";
import {
closeSuccessNotification,
Expand Down Expand Up @@ -659,7 +660,7 @@ export function importApplication(fileName: string, disableAutoCreation?: boolea
enabled ? cy.log("Button is disabled") : cy.get(createEntitiesCheckbox).uncheck();
});

cy.get("form.pf-c-form", { timeout: 5 * SEC })
cy.get(appImportForm, { timeout: 5 * SEC })
.find("button")
.contains("Import")
.trigger("click");
Expand Down

0 comments on commit 098fd5d

Please sign in to comment.