mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-45] Drag and Drop a new version (#1477)
* added functionality to import a file from drag&drop * handle dropping a file over another and triggering the dialog for manage versions while passing the dropped file * handle receiving and passing a file to version manager * handle dropping a file over another. * refactoring the component by using 2 ADF components and showing them by a specific view case. * updated the dialog ref based on how the version dialog should behave in order to change/view a file's versions * handle the new drag&drop to upload a file's version functionality * removed the custom previous version upload component * added payload constructor * added unit test, fixed some misstypes * fix failing travis unit tests * fix failing travis unit tests * added translate module * added last version and fix failing test * small fixes and change type workflow to customevent. * small fix * fix flaky test * deleted flaky merge * ACA-45: Take drag'n'drop pop-up title from ACA rather than the ADF component * fixed a logical issue * ACA-45: Fix failing e2e tests * unit testing error fixing * unit testing error fixing * fix unknown word travis * unlock node after upload success * unlock node after cancelling upload * ACA-45: Introduce back fileUnlock asserts * added unit test for checking if the locked node is unlocked when uploading successfully a new version * added type of event and small update to unit test Co-authored-by: kristian <kristian.dimitrov@alfresco.com>
This commit is contained in:
@@ -134,7 +134,6 @@ describe('Upload new version', () => {
|
||||
await page.waitForDialog();
|
||||
|
||||
expect(await uploadNewVersionDialog.getTitle()).toEqual('Upload New Version');
|
||||
expect(await uploadNewVersionDialog.getText()).toContain('What level of changes were made to this version?');
|
||||
expect(await uploadNewVersionDialog.description.isDisplayed()).toBe(true, 'Description not displayed');
|
||||
expect(await uploadNewVersionDialog.minorOption.isDisplayed()).toBe(true, 'Minor option not displayed');
|
||||
expect(await uploadNewVersionDialog.majorOption.isDisplayed()).toBe(true, 'Major option not displayed');
|
||||
@@ -285,7 +284,6 @@ describe('Upload new version', () => {
|
||||
await page.waitForDialog();
|
||||
|
||||
expect(await uploadNewVersionDialog.getTitle()).toEqual('Upload New Version');
|
||||
expect(await uploadNewVersionDialog.getText()).toContain('What level of changes were made to this version?');
|
||||
expect(await uploadNewVersionDialog.description.isDisplayed()).toBe(true, 'Description not displayed');
|
||||
expect(await uploadNewVersionDialog.minorOption.isDisplayed()).toBe(true, 'Minor option not displayed');
|
||||
expect(await uploadNewVersionDialog.majorOption.isDisplayed()).toBe(true, 'Major option not displayed');
|
||||
@@ -435,7 +433,6 @@ describe('Upload new version', () => {
|
||||
await page.waitForDialog();
|
||||
|
||||
expect(await uploadNewVersionDialog.getTitle()).toEqual('Upload New Version');
|
||||
expect(await uploadNewVersionDialog.getText()).toContain('What level of changes were made to this version?');
|
||||
expect(await uploadNewVersionDialog.description.isDisplayed()).toBe(true, 'Description not displayed');
|
||||
expect(await uploadNewVersionDialog.minorOption.isDisplayed()).toBe(true, 'Minor option not displayed');
|
||||
expect(await uploadNewVersionDialog.majorOption.isDisplayed()).toBe(true, 'Major option not displayed');
|
||||
@@ -586,7 +583,6 @@ describe('Upload new version', () => {
|
||||
await page.waitForDialog();
|
||||
|
||||
expect(await uploadNewVersionDialog.getTitle()).toEqual('Upload New Version');
|
||||
expect(await uploadNewVersionDialog.getText()).toContain('What level of changes were made to this version?');
|
||||
expect(await uploadNewVersionDialog.description.isDisplayed()).toBe(true, 'Description not displayed');
|
||||
expect(await uploadNewVersionDialog.minorOption.isDisplayed()).toBe(true, 'Minor option not displayed');
|
||||
expect(await uploadNewVersionDialog.majorOption.isDisplayed()).toBe(true, 'Major option not displayed');
|
||||
@@ -737,7 +733,6 @@ describe('Upload new version', () => {
|
||||
await page.waitForDialog();
|
||||
|
||||
expect(await uploadNewVersionDialog.getTitle()).toEqual('Upload New Version');
|
||||
expect(await uploadNewVersionDialog.getText()).toContain('What level of changes were made to this version?');
|
||||
expect(await uploadNewVersionDialog.description.isDisplayed()).toBe(true, 'Description not displayed');
|
||||
expect(await uploadNewVersionDialog.minorOption.isDisplayed()).toBe(true, 'Minor option not displayed');
|
||||
expect(await uploadNewVersionDialog.majorOption.isDisplayed()).toBe(true, 'Major option not displayed');
|
||||
|
Reference in New Issue
Block a user