[AAE-4504] FE - [ADF] Fetch destination Folder Path from a static path (#6557)

* [AAE4504] FE - [ADF] Fetch destination Folder Path from a static path

* * Added condition to check destination folder path

* * Added typescript way to check

* Fix attach file from local e2e

* * Added unit tests to the recent changes

* * Fixed comments

Co-authored-by: Cristina Jalba <cristina.jalba@ness.com>
This commit is contained in:
siva kumar
2021-02-05 15:15:04 +05:30
committed by GitHub
parent 3946fc7464
commit 301df3dcb8
4 changed files with 92 additions and 9 deletions

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { by, element } from 'protractor';
import { by, element, browser } from 'protractor';
import { DocumentListPage } from '../pages/document-list.page';
import { BrowserVisibility } from '../../core/utils/browser-visibility';
import { BrowserActions } from '../../core/utils/browser-actions';
@@ -149,6 +149,7 @@ export class ContentNodeSelectorDialogPage {
const uploadButton = element(by.css('adf-upload-button input'));
await BrowserVisibility.waitUntilElementIsPresent(uploadButton);
await browser.sleep(500);
await uploadButton.sendKeys(fileLocation);
await this.tabPage.clickTabByLabel(this.repositoryTabName);