public void testDeleteFile () throws Exception {
MainView mainView = Actions.login(Config.URL, Config.user,Config.password, Config.isTrusted, driver);
public void testDeleteFile () throws Exception {
MainView mainView = Actions.login(Config.URL, Config.user,Config.password, Config.isTrusted, driver);
//TODO. if the file already exists, do not upload
MainView mainViewAfterUploadFile = Actions.uploadFile(FILE_NAME, mainView);
mainViewAfterUploadFile.scrollTillFindElement(FILE_NAME);
//TODO. if the file already exists, do not upload
MainView mainViewAfterUploadFile = Actions.uploadFile(FILE_NAME, mainView);
mainViewAfterUploadFile.scrollTillFindElement(FILE_NAME);
- waitTillElementIsNotPresent(mainViewAfterUploadFile.getProgressCircular(), 1000);
- wait.until(ExpectedConditions.visibilityOf(mainViewAfterUploadFile.getFileElementLayout().findElement(By.id(MainView.getLocalFileIndicator()))));
+ Common.waitTillElementIsNotPresent(mainViewAfterUploadFile.getProgressCircular(), 1000);
+ common.wait.until(ExpectedConditions.visibilityOf(mainViewAfterUploadFile.getFileElementLayout().findElement(By.id(MainView.getLocalFileIndicator()))));
Actions.deleteElement(FILE_NAME,mainViewAfterUploadFile, driver);
assertFalse(mainViewAfterUploadFile.getFileElement().isDisplayed());
Actions.deleteElement(FILE_NAME,mainViewAfterUploadFile, driver);
assertFalse(mainViewAfterUploadFile.getFileElement().isDisplayed());