Skip to content

Commit

Permalink
Merge pull request #318 from ProcessMaker/fix_functions_file_manager
Browse files Browse the repository at this point in the history
Update file manager functions
  • Loading branch information
ana-mauricio authored Dec 5, 2024
2 parents e7432a2 + 8e8d79a commit c912bbf
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 200 deletions.
11 changes: 5 additions & 6 deletions pages/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -938,21 +938,20 @@ export class Admin {
}
selectFileInFileManager(filePath) {
cy.get(selectors.selectFileBtn).attachFile(filePath);
cy.xpath('//div[@class="uploader-list"]/ul/li/div[@status="uploading"]').should('be.visible')
cy.xpath('//div[@class="uploader-list"]/ul/li/div[@status="uploading"]').should('not.be.exist',{ timeout: 10000 })
cy.wait(2000);
cy.xpath('//li[contains(text(),"/public-files")]').should('exist');
cy.wait(2000);
}
doneUploadPublicFile(){
cy.get(selectors.doneBtn).click();
cy.xpath('//div[@class="container text-center"]/div[@class="icon-container"]').should('be.visible');
cy.xpath('//div[@class="container text-center"]/div[@class="icon-container"]').should('not.exist',{ timeout: 10000 })
cy.get('[id="file-manager"]>* .table').should('be.visible');
}

createFolder(folderName){
cy.xpath('//div[@class="modal-content"]//header//h5[text()="Create Folder"]').should('be.visible');
cy.get('input[placeholder="Untitled folder"]').type(folderName, {delay:100});
cy.xpath('//div[@class="modal-content"]//footer//button[text()="Create"]').click();
cy.xpath('//div[@class="container text-center"]/div[@class="icon-container"]').should('be.visible');
cy.xpath('//div[@class="container text-center"]/div[@class="icon-container"]').should('not.exist')
cy.wait(4000);
}

/**
Expand Down
Loading

0 comments on commit c912bbf

Please sign in to comment.