30 Commits

Author SHA1 Message Date
Adina Parpalita
2f8d3d58c4
[ACA-4264] refactor page load and loginWith methods (#1952)
* update extensions json files

* no message

* on login, sign out if anyone is already logged in

* one more selector override needed by ACA-4262
2021-01-29 12:27:32 +00:00
Adina Parpalita
21989ec1ab
[ACA-4262] fix selector for content-node-selector-dialog (#1951)
* override generic dialog content selector

* un-exclude tests

* lint
2021-01-27 14:31:21 +00:00
Adina Parpalita
e227248324
[ACS-1129]fix signOut method to work for SSO as well 2021-01-13 19:02:14 +02:00
Adina Parpalita
b8feed47c3
[ACA-4242] Update e2e login method to account for the changes done for ACA-4197 (#1910)
* build dev instead of e2e

* clear localStorage before new login

* re-enable all tests

* try again build.e2e

* enable one test

* exclude again

* no message

* no message
2021-01-11 15:55:14 +00:00
Adina Parpalita
13fa065654
exclude one test and do some fixes (#1869)
* exclude one test and do some fixes

* try to get more logs

* some more fixes

* try to workaround the slow update of toggle menus

* more logging

* no message

* trigger another run

* Update delete-undo-delete.test.ts

* no message

* rename methods

* no message

* no message

* no message

* no message

* no message

* no message

* update travis.yml

* run travis on branch

* trigger travis

* cleanup

* no message
2020-12-15 10:10:01 +00:00
Denys Vuika
7a5350a06d
reduce duplication and code improvements (#1707)
* reduce code duplication

* reduce duplication, fix license headers

* simplify code

* typings fixes

* update tests

* minor fixes

* markdown fixes

* revert changes
2020-12-11 15:47:17 +00:00
Denys Vuika
6049711a5c
Release 2.2.0 (#1870)
* update package versions script

* update package versions script

* generate reports script

* bump versions to 2.2.0

* audits

* upgrade to final ADF

* update docs

* update app config
2020-12-09 16:55:39 +00:00
Eugenio Romano
ad58be3d05
Rebalance suites conf to be less error prone (#1819)
* rebalance suites conf to be less error prone

* shared api - wait for specific files instead of totalItems

* remove unused

* - make search api wait calls more stable on parallel runs
- remove not needed workaround from closeMoreMenu

* reorganize test suites
a few more test stabilisations

* improve copy tests for parallel running

* more changes to consider parallel running

Co-authored-by: Adina Parpalita <Adina.Parpalita@ness.com>
2020-12-04 12:39:39 +00:00
Adina Parpalita
885a1b1b33
add back try-catch around api calls (#1815)
* add back try-catch around api calls to avoid UnhandledPromiseRejectionWarning

* minor fixes for pagination to account for parallel runs

* missed one

* a few more fixes

* search only files to get correct and consistent number of results

* try something

* add try catch in upload output

* fix cleanup on Create file / folder from template to account for parallel running

* fix incorrect test case id
fix for undefined properties
unexclude some tests to see if still failing

* revert change in order to fix test

* unused import

* exclude test due to missing EXIF aspect

* trigger one more run
2020-11-25 05:45:50 +00:00
Eugenio Romano
8186ee16ac
increase default timeout due possible slow env (#1812)
* increase default timeout due possible slow env

* parallel test can affect this check

* unused call

* remove

* reduce size test lib

* fix search test

* remove log

* build

* reorganize file actionsAvailable tests

* fix

* fix

* Update single-file-actions.test.ts

* Update single-file-actions.test.ts

* fix viewer actions from search results tests

* fix snackbar actions tests

* forgot console.log

* exclude

Co-authored-by: Adina Parpalita <Adina.Parpalita@ness.com>
2020-11-23 10:35:28 +00:00
Eugenio Romano
8308573f3c
Unexclude due the timeout (#1805)
* change base method to wait

* fix import

* reduce log

* fix

* data placeholder

* fix

* fix

* fix

* fix style

* change visibility with common method

* fix

* use common get value method

* remove unused import

* fix a few incorrect api calls

* - use separate variables

* correctly wait for items after they have been created

* use browseraction click

* Exclude failing tests

* increase timeout and some fix

* check env before execute test

* simplify conf

* exclude

* rerun

* logs

* refactor pagination tests to use only 51 items
take out pagination tests into a separate stage

* fix check

* remove hardcoded total items. other shared files might already exist

Co-authored-by: Adina Parpalita <Adina.Parpalita@ness.com>
Co-authored-by: iuliaib <iulia.burca@ness.com>
2020-11-19 16:07:57 +00:00
Denys Vuika
20f1752b48
[ADF-5247] always enabled language picker (via extensions) (#1730)
* always enabled language picker

* fix tests

* update e2e tests

* fix aos plugin
2020-10-15 08:57:04 +01:00
Denys Vuika
f6116021fb bump libs to 2.1.0 2020-10-14 10:46:51 +01:00
Denys Vuika
e9b837462a
e2e improvements part2 (#1728)
* deprecate comments api wrapper, delete sites perf improve

* introduce user actions

* admin actions inherit user actions

* unlock nodes helper

* api improvements

* api improvements

* update code

* api improvements

* deprecate trashcan api wrapper

* shared api improvements
2020-10-07 19:06:21 +01:00
Denys Vuika
d7367623f6
e2e api enhancements (part 1) (#1727)
* add typings, deprecate username wrapper

* improve imports

* unify admin actions for people

* remove auth api wrapper

* remove unused apis

* remove unused apis

* use admin api actions everywhere
2020-10-07 10:40:20 +01:00
Denys Vuika
9c7ac17161
Various code fixes (#1704)
* fix typings and missing lib

* fix i18n typo, add typings

* code improvements

* fix missing awaits

* more fixes

* fix bug in the evaluators, simplify code

* more fixes
2020-10-04 18:09:27 +01:00
Cilibiu Bogdan
68594cbbc0
[ACA-3907] Document list header should not appear on an empty list (#1657)
* show header based on data

* try another selector

Co-authored-by: Adina Parpalita <adina.parpalita@ness.com>
2020-09-22 09:16:19 +01:00
Maurizio Vitale
9b0c31073a
ACA Run the test against the remote env (#1669)
* Run the test against the remote env

* Use remote user

* exclude e2e and raise issue

* Exlude more

* small change to trigger travis

* add api method to get totalItems of various endpoints

* lint fix

* remove tests from excluded to see what fails

* - fix some issues with the screenshot plugin
- add methods to get total items for some endpoints
- fix some waitForApi calls to consider initial total items number
- sortByModified descending in order to find the item needed by the test when having items on multiple pages

* Try to fix screenshots

* a few more fixes

* Upload screenshots

* a few more fixes

* Delete e2e-output-${retry} at the end

* delete unused variable

* some changes

* lint

* try one more fix

* Try to fix retry

* a few more fixes

* Try to fix retry

* some more fixes

* Fix "on Recent Files" suite

* Move "on Search Results" at the beginning of the class in order to avoid waitForApi:catch

* Empty commit

* Empty commit

* Empty commit

* Run e2e with lite-server

* Exclude protractor report folder

* Remove useless config

* change browser size

* no message

* one more try

* Empty commit

* try to maximize

* fix upload Recent files tests

* revert maximizing the browser

* don't "Run e2e with lite-server"

* fix mark-favorite tests

* few more fixes

* fix viewer and share tests

* test the lite server with retry

* Verify suites with lite server

* some final fixes

* Try to use httpserver

* Print the file and use http server

* Use http-server to fix protractor retry

* more fixes

* forgot a space :|

* remove extra job not needed anymore
rename test data into more specific

* play with the screenshots

* try new run

* trigger one more run

* a few more little fixes

* Fix comments

* Remove comment

* Fix lint error

Co-authored-by: Adina Parpalita <Adina.Parpalita@ness.com>
Co-authored-by: Cristina Jalba <cristina.jalba@ness.com>
Co-authored-by: iuliaib <iulia.burca@ness.com>
2020-09-18 12:01:55 +01:00
Denys Vuika
1c6efc5584
release 2.0.1 (#1625) 2020-08-18 18:58:23 +01:00
Denys Vuika
b5204e50bd
Release 2.0.0 (#1624)
* bump versions to 2.0.0

* update aca-shared dependencies

* audit reports

* upgrade to final ADF

* temporarily disable reload tests

* disable test

* disable test
2020-08-18 17:21:13 +01:00
Denys Vuika
b86db21e93
[ACA-3593] fix library builds (#1593)
* upgrade to solution style tsconfig

* remove missing path

* add e2e config to the solution

* fix config path
2020-08-11 17:13:22 +01:00
Urse Daniel
f59abb4228
[ACA-100] View a previous version (#1562)
* added a feature to view a previous node version

* added latest versions

* added single selection to match the latest ADF change

* hide version list dialog when opening the viewer

* pass versionId to adf-viewer

* add view versions rendition routes for: shared, recent files, favorites, search.

* added functionality to download a previous version of a node

* small fix - no need to clear the store

* remove unused import

* removed changes

* Delete package-lock.json

* revert

* update to last dependencies

* ACA-3601: Add e2e tests for Preview of a file's previous version

* Address comments

* ACA-3601: Make sub-tests execute independently

* update dependencies

* ACA-3601: Add licenses

* Add type

* ACA-3601: Refactor execution

Co-authored-by: kristian <kristian.dimitrov@alfresco.com>
Co-authored-by: Denys Vuika <denys.vuika@alfresco.com>
2020-08-05 16:15:20 +03:00
dhrn
f35095a75b
[ACA-3670] Inconsistent empty role value between library views (#1528)
* [ACA-3613] Inconsistent role value between library views

* * upgrade alpha

* fix ut
2020-07-15 09:51:09 +01:00
Denys Vuika
ddc6f36ab4
Prettier upgrade and e2e type checks (#1522)
* upgrade prettier

* noImplicitAny rule

* fix type

* update tsconfig

* upgrade to 150 print width
2020-07-14 10:03:23 +01:00
Denys Vuika
2854c17cd9
[ADF-5183] Upgrade to Angular 10 (#1506)
* upgrade preparation fixes

* remove fdescribe

* update browserlist config

* ng8

* ngrx 8

* ng9

* ngrx 9

* remove entryComponents

* unit tests

* ng 10

* latest ADF

* fix unit tests

* fix lint

* update deps and travis

* code fixes

* upgrade webdriver

* cleanup libs

* fix test

* update test

* Use browserTarget as target for lite-serve

* Use the update webdriver with CI condition

* Use version console.log('load', path

* Fix path sh

* Try to use remote env

* Add the . to export variabled

* Use hardcoded chrome version

* Remove the run remote

* Avoid to use the escape

* Skip flaky e2e and raise issue ACA-3615

* SKip failing e2e

* Skip flaky e2e and raise issue ACA-3615

* Fix close app toolbar menu and preconditions + tests of  mark-favorite.test.ts  Personal Files section

* Fix mark-favorite tests

* Fix ext-header test

* Fix new-menu tests

* Fix lint

* no message

* Fix viewer tests

Co-authored-by: maurizio vitale <maurizio.vitale@alfresco.com>
Co-authored-by: Cristina Jalba <cristina.jalba@ness.com>
2020-07-09 09:37:06 +01:00
Denys Vuika
a6a05b4a45
Release preparation (#1501)
* 1.12.0

* bump libs

* audit and licenses

* update adf libs
2020-06-29 17:28:42 +01:00
Baptiste Mahé
2e8b863413
[ACA-3468] Enable Document List filters in ACA (#1495)
* [ACA-3471] too long french translation doesn't fix in the UI (#1499)

* [ACA-3538] Fix search result layout (#1500)

* [ACA-3468] Enable Document List filters in ACA

* [ACA-3468] Get pagination settings from document list

* [ACA-3468] Move event handlers and pagination to page component

* [ACA-3468] Remove useless OnChanges

* [ACA-3468] Fix linter

* [ACA-3468] Add test for document list definition

* [ACA-3468] Fix lint

* [ACA-3468] Remove identifier

* [ACA-3468] Update to lastest ADF alpha to fix search result

* [ACA-3468] Update to lastest ADF alpha

* Fixed unit test

* re-enable tests

* rollback changes to test

* fix reload

* * fixed search e2e

* fix issue with page reload on search results

* update tests

Co-authored-by: arditdomi <32884230+arditdomi@users.noreply.github.com>
Co-authored-by: PizzaVito <vito.albano.123@gmail.com>
Co-authored-by: Denys Vuika <denys.vuika@gmail.com>
Co-authored-by: dhrn <dharan.g@muraai.com>
2020-06-29 17:28:31 +01:00
davidcanonieto
03b75a5fb3
[ACS-180] Add Description column to My libraries / Favorites (#1486)
* [ACS-180] Add Description column to My libraries / Favorites

* Fix e2e test

* Fix datatable selector

* Fix role and visibility selectors

* Add description to search library layout

* Final fix
2020-06-16 14:54:26 +01:00
Urse Daniel
42d3d5cd6f
[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>
2020-06-09 21:48:03 +01:00
Roxana Diacenco
6e17405787
[ACA-3392] Create aca-testing-shared project to be reused in ADW (#1480)
* Move e2e framework to aca-shared/testing

* * Update e2e suites imports from @alfresco/aca-shared/testing
* Remove testing framework from 'e2e' directory

* Move e2e testing framework to `aca-testing-shared` project
2020-06-04 22:40:07 +02:00