mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
add tests for Upload New Version (#960)
This commit is contained in:
committed by
Cilibiu Bogdan
parent
9ceefff5e6
commit
a2df75a6dc
@@ -23,11 +23,13 @@
|
||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { browser, protractor, promise, ElementFinder, ExpectedConditions as EC } from 'protractor';
|
||||
import { browser, protractor, promise, ElementFinder, ExpectedConditions as EC, by } from 'protractor';
|
||||
import { BROWSER_WAIT_TIMEOUT, E2E_ROOT_PATH, EXTENSIBILITY_CONFIGS } from '../configs';
|
||||
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
|
||||
|
||||
export class Utils {
|
||||
static string257 = 'assembly doctor offender limit clearance inspiration baker fraud active apples trait brainstorm concept breaks down presidential \
|
||||
reluctance summary communication patience books opponent banana economist head develop project swear unanimous read conservation';
|
||||
@@ -130,4 +132,10 @@ export class Utils {
|
||||
return new Date(date).toLocaleDateString('en-US');
|
||||
}
|
||||
|
||||
|
||||
static async uploadFileNewVersion(fileFromOS: string) {
|
||||
const el = browser.element(by.id('app-upload-file-version'));
|
||||
await el.sendKeys(`${E2E_ROOT_PATH}/resources/test-files/${fileFromOS}`);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user