mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
[ADF-3330] Create automated tests for Uploader component (#3581)
* Upload button e2e * improve test organization * add dev option in test run * Create desktop.ini * upload component automation final step * remove fdescribe * ignore downloads folder * exclude pagination
This commit is contained in:
committed by
Eugenio Romano
parent
ee8151d50d
commit
fcaa033a57
@@ -25,6 +25,7 @@ var UploadDialog = function () {
|
||||
var minimizedDialog = element(by.css("div[class*='upload-dialog--minimized']"));
|
||||
var uploadedStatusIcon = by.css("mat-icon[class*='status--done']");
|
||||
var cancelledStatusIcon = by.css("div[class*='status--cancelled']");
|
||||
var errorStatusIcon = by.css("div[class*='status--error']");
|
||||
var cancelWhileUploadingIcon = by.css("mat-icon[class*='adf-file-uploading-row__action adf-file-uploading-row__action--cancel']");
|
||||
var rowByRowName = by.xpath("ancestor::adf-file-uploading-list-row");
|
||||
var title = element(by.css("span[class*='upload-dialog__title']"));
|
||||
@@ -78,6 +79,11 @@ var UploadDialog = function () {
|
||||
return this;
|
||||
};
|
||||
|
||||
this.fileIsError = function (content) {
|
||||
Util.waitUntilElementIsVisible(this.getRowByRowName(content).element(errorStatusIcon));
|
||||
return this;
|
||||
};
|
||||
|
||||
this.filesAreUploaded = function (content) {
|
||||
for (i=0; i<content.length; i++) {
|
||||
this.fileIsUploaded(content[i]);
|
||||
|
Reference in New Issue
Block a user