Skip to content

Commit

Permalink
Fixed drag n drop issue (#1224)
Browse files Browse the repository at this point in the history
Signed-off-by: Shveta Sachdeva <[email protected]>
  • Loading branch information
sshveta authored Sep 18, 2024
1 parent 418bebb commit 22541b0
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,12 @@ export class CustomMigrationTarget {
}

public static uploadImage(imagePath: string, input = false) {
cy.get(CustomMigrationTargetView.imageInput).selectFile(`cypress/fixtures/${imagePath}`, {
timeout: 120 * SEC,
force: true,
});
cy.get("div[class='pf-v5-c-file-upload__file-details']")
.next('input[type="file"]', { timeout: 2 * SEC })
.selectFile(`cypress/fixtures/${imagePath}`, {
timeout: 120 * SEC,
force: true,
});
}

private static fillForm(values: Partial<CustomMigrationTarget>) {
Expand Down

0 comments on commit 22541b0

Please sign in to comment.